Ocrana
asked on
ACCELERATOR conflict
Hi,
I use a ACCELERATOR key "VK_SPACE" in my software. Works great. But now I have a edit field in my dialog and it is impossible to write a space inside this cause the VK_SPACE is "Blocked" by the ACCELERATOR function.
I want now to dactivate the ACCELERATOR while the edit field has focus, but where can I set this?
I have a value "nameEdit1.isFocused = true/false" where I can check but I do not now in what function i can "disable" the ACCELERATOR tempory.
Thanks,
Ocrana
I use a ACCELERATOR key "VK_SPACE" in my software. Works great. But now I have a edit field in my dialog and it is impossible to write a space inside this cause the VK_SPACE is "Blocked" by the ACCELERATOR function.
I want now to dactivate the ACCELERATOR while the edit field has focus, but where can I set this?
I have a value "nameEdit1.isFocused = true/false" where I can check but I do not now in what function i can "disable" the ACCELERATOR tempory.
Thanks,
Ocrana
In my opinion the best solution is to use a different accelerator key, i.e. CTRL-SPACE
Hello,
maybe you can use a global variable.
When the edit field gets the focus you set this to TRUE and to FALES if the focus is removed.
In the accelerator you can check this variable.
Stefan
maybe you can use a global variable.
When the edit field gets the focus you set this to TRUE and to FALES if the focus is removed.
In the accelerator you can check this variable.
Stefan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The Sublinks helped a lot