Re: Trapping the TAB key

new topic     » goto parent     » topic index » view thread      » older message » newer message

jonas, i received this from derek some time ago:

the standard is to trap the TAB kay and not pass it on to the keypress
handler.

There is a trick you can use though. It will mean that you will ahve to do
your own tab processing though.

If you do this ...

   VOID = setTabCodes(0)

then no key will cause tabbing between the controls - plus the TAB key gets
passed through to the keypress handler.

Alternatively, you could do ...

   VOID = setTabCodes(VK_F8)

to make the F8 key become the new tabbing key.


----- Original Message -----
From: "Judith" <camping at txcyber.com>
To: "EUforum" <EUforum at topica.com>
Sent: Wednesday, August 15, 2001 8:15 PM
Subject: Tab Key question and Win32lib


george
----- Original Message ----- 
From: "Jonas Temple" <jktemple at yhti.net>
To: "EUforum" <EUforum at topica.com>
Sent: Monday, May 06, 2002 4:34 PM
Subject: Trapping the TAB key


> 
> Does anyone know how, using Win32lib, to trap when the TAB key is 
> pressed in: edit control, combo, dropdownlist?
> 
> Also I think I know the answer here, but...I can trap the key up/down 
> events in a drop down list but no in a combo box.  Is this because of 
> the editing feature in a combo box?
> 
> And has anyone else had problems with using the ES_NUMERIC style in an 
> edit control?  This doesn't seem to work anymore.
> 
> Euman, I took your challenge.  I'm fairly close to releasing a first 
> stab of a data grid control (like I was looking for earlier).  This 
> control will support multiple columns, with column and row headers.  
> Each column can be a separate control type (text, numeric, file browse, 
> date, combo, drop down, toggle field, checkbox), have its own 
> background/text color, can be protected (user cannot change).  If I get 
> a few more of these minor things ironed out I might have a initial 
> working version some time next week.
> 
> Jonas
> 
> 
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu