Focus/LostFocus solution for TreeGadget?
Posted: Thu Jan 03, 2013 3:44 am
I know there's been a Feature Request raised for Focus and LostFocus events to be raised for TreeGadgets, but since this isn't yet available in PB is there an alternative Windows solution for this?
In my program I want to allow the user to use Ctrl/C, Ctrl/V etc to copy and paste nodes in the TreeGadget. I can implement a KeyboardShortcut to handle this and check the active gadget for the TreeGadget, so that all works fine. But by doing this users then lose the ability to use normal copy and paste on text fields in the same window. So ideally I want to be able to add the keyboard shortcuts when the treegadget gains focus and remove the keyboard shortcuts when it loses focus.
Any ideas?
In my program I want to allow the user to use Ctrl/C, Ctrl/V etc to copy and paste nodes in the TreeGadget. I can implement a KeyboardShortcut to handle this and check the active gadget for the TreeGadget, so that all works fine. But by doing this users then lose the ability to use normal copy and paste on text fields in the same window. So ideally I want to be able to add the keyboard shortcuts when the treegadget gains focus and remove the keyboard shortcuts when it loses focus.
Any ideas?