Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CheckBox doesn't appear to have focus
Message
 
 
To
25/09/2006 20:36:39
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00637813
Message ID:
01157208
Views:
21
>>>Ok, found it. The checkbox has caption none... :) So, I coded "visual clue" by myself in GotFocus (backcolor = rgb(0,0,64) and in the lostfocus - restore it to default)
>>
>>The question is: is it possible to do without changing checkbox class and without changing each instance of the checkboxes?
>
>
*-- in pseudo code
>for each oControl in ThisFormsControlsRecursively
>   if oControl.baseclass="checkbox"
>      Bindevent(oControl, "gotfocus", this, "paintcheckboxblue")
>      Bindevent(oControl, "lostfocus", this, "paintcheckboxneutral")
>   endif
>endfor
Thanks, Dragan. I'm thinking, that may be fixing the base class would be a better alternative...
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform