Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make a caption font bleed
Message
From
03/05/2005 23:44:33
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00869188
Message ID:
01010666
Views:
26
Hi Guys,

I believe I have found a solution to the problem with bleeding checkboxes. I added the following code to my checkbox InteractiveChange event:

* this behavior fixes bold bleed effect that occurs under XP Themes
local lbLockScreen
lbLockScreen = ThisForm.LockScreen
ThisForm.LockScreen = .T.
keyboard '{tab}{backtab}'
ThisForm.LockScreen = lbLockScreen

The technique is to tab out of the checkbox (which causes VFP to repaint the control properly) and then to tab back in again. You'll still see the bleed effect while a user holds down the left mouse button or the Space key, but as soon as they release their mouse button/Space key, the InteractiveChange event will fire allowing the above code to "fix" the visual appearance of the control.

Truly a hack job. But in my tests so far, very effective.

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform