SetFocus (UnSetFocus?) question
Posted: Tue Aug 28, 2018 7:42 pm
I have a main menu made of several buttons. If one is clicked that has a submenu, the main menu buttons are disabled and turn grey, and the focus moves to the menu buttons on the submenu. But if the click triggers a process, it opens a window in which labels become visible as the process and the ProgressBar move along - but the menu buttons don't go grey and lose focus until a "Done" button at the end of the process becomes visible and gets focus.
I've tried setting the focus to the process update window, and focus can't be set to the Labels or to the ProgressBar or (it seems) to anything else that doesn't interrupt the process. I've even tried doing SetFocus to the "Done" button before it's made visible (as soon as I load the process window), but that doesn't seem to work either.
It doesn't affect the logic or the process itself, but it would look better if I could grey the menu buttons as soon as they're disabled.
Is there a way to "UnSetFocus"? I hope that I'm not missing anything obvious, but it's got me stumped. Any ideas or suggestions would be appreciated.
Thanks.
I've tried setting the focus to the process update window, and focus can't be set to the Labels or to the ProgressBar or (it seems) to anything else that doesn't interrupt the process. I've even tried doing SetFocus to the "Done" button before it's made visible (as soon as I load the process window), but that doesn't seem to work either.
It doesn't affect the logic or the process itself, but it would look better if I could grey the menu buttons as soon as they're disabled.
Is there a way to "UnSetFocus"? I hope that I'm not missing anything obvious, but it's got me stumped. Any ideas or suggestions would be appreciated.
Thanks.