Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make a caption font bleed
Message
De
03/05/2005 23:44:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00869188
Message ID:
01010666
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform