Page 1 of 1

Event problem

Posted: Sat Feb 19, 2005 2:04 pm
by chippy73
This part works fine....

Case #PB_EventGadget
Select EventGadgetID()
Case #Gadget_Form1_Button1
macro = 1
If EventType() = #PB_EventType_RightClick
do stuff here

now I want to detect when the return key has been pressed in the string gadget so that I can do something with the text in the string gadget and pass focus to the next string gadget.

I've tried using #PB_EventType_LostFocus on the first string gadget but it wont work.

Any ideas please?

Alan

Re: Event problem

Posted: Sat Feb 19, 2005 2:17 pm
by PB
> I want to detect when the return key has been pressed in the string gadget

viewtopic.php?t=7458

Posted: Sat Feb 19, 2005 2:42 pm
by chippy73
PB,

Many thanks. That's exactly what I wanted.

Alan