Event problem

Windows specific forum
chippy73
User
User
Posts: 59
Joined: Wed Feb 16, 2005 6:11 pm
Location: S.W.Wales

Event problem

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Event problem

Post by PB »

> I want to detect when the return key has been pressed in the string gadget

viewtopic.php?t=7458
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
chippy73
User
User
Posts: 59
Joined: Wed Feb 16, 2005 6:11 pm
Location: S.W.Wales

Post by chippy73 »

PB,

Many thanks. That's exactly what I wanted.

Alan
Post Reply