Announcement

Collapse
No announcement yet.

Graphic waitkey$

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Graphic waitkey$

    Using PB/CC 5.01...

    Is there any reason why GRAPHIC WAITKEY$ (or GRAPHIC INKEY$ for that matter) should refuse to 'see' the horizontal tab key (^I) in a graphics window? I would expect to get an ASCII value of 9, but it acts like no key was pressed. Other control characters appear to be visible. WAITKEY$ and INKEY$ can both 'see' the tab key in the console.

    Any enlightenment welcome!

  • #2
    Tab Key

    Michael,
    PBCC 5.01 does not trap the TAB key and also the mouse scroll wheel so far
    Maybe 5.02 will ?
    As I needed that key, I had to learn how to subclass that command.
    Check my GRAPHIC CONSOLE MENU post for the technique.
    You wil find all you need there.
    Last edited by Guy Dombrowski; 5 May 2009, 01:33 PM.
    Old QB45 Programmer

    Comment


    • #3
      As it would appear to be a bug - help for GRAPHIC WAITKEY$ and GRAPHIC INKEY$ read very much alike: "Read a keyboard character if one is ready" (INKEY$) or "Read a keyboard character, waiting until one is ready (WAITKEY$), I would guess a maintenance release would address this problem.... assuming anyone has actually bothered to report it to the official reporting station [email protected]
      Michael Mattias
      Tal Systems Inc. (retired)
      Racine WI USA
      [email protected]
      http://www.talsystems.com

      Comment


      • #4
        All Windows created by PowerBASIC are dialogs and the dialog engine takes these type of keys. We wanted the graphic commands to function the same in graphic windows and graphic controls (PBWin), so that it would not be confusing. It just would not be prudent to catch a tab key in a graphic control, as the tab is used to move to the next control.

        If you have a suggestion how you would like this function, just send a request to [email protected].
        Sincerely,

        Steve Rossell
        PowerBASIC Staff

        Comment


        • #5
          Would be nice to let the programmer decide to add the TAB key function with a simple flag ?
          Old QB45 Programmer

          Comment


          • #6
            Thank you good people. Now I understand. I shall send a request to support, following Guy's suggestion.

            Thanks for the GRAPHIC CONSOLE MENU code Guy. It's a little over my head at present, but I'll study carefully...

            Comment


            • #7
              If it's working as designed, the doc is in error. It should contain a 'restrictions' or 'limitations' or 'remarks' section defining which keys are not detected by the function.
              Michael Mattias
              Tal Systems Inc. (retired)
              Racine WI USA
              [email protected]
              http://www.talsystems.com

              Comment

              Working...
              X