OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: roy_043 on October 27, 2011, 12:54:04 PM

Title: Disabling a Graphic Button from inside a Tree Control moves the focus
Post by: roy_043 on October 27, 2011, 12:54:04 PM
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.
Title: Re: Disabling a Graphic Button from inside a Tree Control moves the focus
Post by: owenwengerd on October 27, 2011, 10:30:38 PM
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.
Title: Re: Disabling a Graphic Button from inside a Tree Control moves the focus
Post by: roy_043 on October 28, 2011, 02:58:23 AM
Thank you Owen.