Hi Steve,
Do you mind if we talk on the phone more about QT apps?
Please provide your number and I can call you when ever is good for you.
thanks for your time and help.
Sam Bushman
----- Original Message -----
From: "Stephen Clower" <[email protected]>
To: <[email protected]>
Sent: Tuesday, October 19, 2010 7:49 PM
Subject: Re: Handling Characters from Within a Dialog
J.J.,
Try hooking OnChildActivate and OnChildDeactivate from the desktop window.
E.G.
ConnectEvent DesktopWindow, "OnChildActivate", "OnChildActivate"
ConnectEvent DesktopWindow, "OnChildDeactivate", "OnChildDeactivate"
Sub OnChildActivate(oWindow)
'... if this is your dialog, register hotkeys.
End Sub
Sub OnChildDeactivate(oWindow)
'... If this isn't your dialog and you have already registered hotkeys,
unregister now.
End Sub
HTH.
Steve
On 10/19/2010 9:41 PM, J.J. Meddaugh wrote:
Hello. I want to add an event in my dialog where if a number is pressed,
focus is moved to a particular field and the number is entered.
I looked at the immed script since I know it uses select all as a key
from within the window. I see the idea would be to register a hotkey (or
in this case 10) from within the dialog and dump them once the dialog is
closed.
It's the unregistering part that confuses me. I notice that the selectAll
key is unregistered for the dialogClosing event which I assume is as the
dialog is closing, go figure. But what about if the dialog loses focus?
Is this being accounted for in this script or is there another event to
watch for? Obviously, I only want these numbers to work from within the
dialog box.
Thanks for any help.
J.J> Meddaugh - ATGuys.com
Your Assistive Technology Experts