Disabling a Graphic Button from inside a Tree Control moves the focus

Started by roy_043 · 2011-10-27 19:54 UTC · 2 replies · SMF topic #1714

Bricscad 12.1.2
OpenDCL  7.0.0.1
Win XP

I have a tree control displaying folders. Depending on the content of a selected folder certain buttons are disabled/enabled. If I use the arrow keys to change the selection in the tree control and that selection disables a graphic button the focus 'jumps' out of the tree control.
This does not happen if the button being disabled is a text button.
Attachments
This was due to a bug in the graphic button code. It was trying to outsmart Windows by moving focus to the next dialog control when it became disabled. The bug is now fixed for the next build.
Thank you Owen.