Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursor lost in Checkbox?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00259286
Message ID:
00259317
Vues:
14
You can also eliminate the overhead of the shape object by using the form's box() method to highlight the checkbox by using following timer.timer() code:

oObject = thisform.check1
thisform.drawWidth=2
thisform.CurrentX = oObject.Left - 1
thisform.CurrentY = oObject.Top + 5
thisform.box(oObject.Left + 13, oObject.Top + 20)

>Good idea. I Think I'll implement that.
>
>>You can also make this effect more 'cursor-like' by making it blink with a >timer. Try adding a timer with a 500 interval with the following code in the >timer event:
>
>>thisform.shape1.visible = ! thisform.shape1.visible
>
>>Then enable the timer on gotfocus(), and disable on lostfocus()
kenweber
GCom2 Solutions
Microsoft Certified Professional

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform