News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Help with handling the Tab key

Started by taff_e, February 03, 2005, 10:47:49 AM

Previous topic - Next topic

taff_e

Hi

I'm trying to delve into the world of custom controls  :'(

I'm in the process of developing a custom time control for recording times - but It seems I've been stopped in my tracks at the first hurdle.  I am trying to allow the control to respond to the TAB key by using WS_TABSTOP when creating the child control but unsuccessfully.

I've read somewhere about using the IsDialogMessage in your message loop but this will not work as all the code needs to be contained within the control and not the message loop.  Can anyone point me in the right direction

I've attached my progress so far - ignore the lack of comments and feel free to comment

Thanks

Taff

[attachment deleted by admin]

petezl

It would be something like:
It would be something like:
mov eax, wParam
cmp al, VK_TAB (or what ever)

Peter.
Cats and women do as they please
Dogs and men should realise it.

KetilO

Hopefully this will bring you a step further.

KetilO

[attachment deleted by admin]

taff_e

Thanks to the both of you for the help

After petezl suggestion I realised I needed to subclass the edit controls

Ketilo - thank you for the code - this will really help me make progress on my control

Taff  :U