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

Started by roy_043, October 27, 2011, 12:54:04 PM

Previous topic - Next topic

roy_043

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.

owenwengerd

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.