Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: No DOWN effect for graphical checkbox
Message
De
09/09/2005 05:16:38
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01047979
Message ID:
01048009
Vues:
21
>I don't know if anybody has already reported this VFP9 bug:
>In VFP9 with XP theme enabled, a checkbox with Style=2 (Graphical) does not show the "Down" visual effect when value=1 or .T.
>
>Code to repro:
>
>Wait Window 'Press a key to create a graphic checkbox at the left top of screen...'
>_Screen.AddObject('c','Checkbox')
>_Screen.c.Visible=.T.
>_Screen.c.Style= 1
>Do While Lastkey()=13
>  Wait Window '_Screen.c.Value='+Tran(_Screen.c.Value)+'.  Press ENTER to toggle 0/1, other key to end.'
>  _Screen.c.Value=Abs(_Screen.c.Value-1)
>EndDo
>_Screen.RemoveObject('c')
>
>
>I found that some visual bugs only show in DBCS Windows, like the one that I am using. For this one, I have tested it in an English WinXP running inside Virtual PC and the bug still shows. I don't know if you can reproduce the same problem.

Yes, it is a bug,
hold down the mouse or ENTER ( you see the down effect, CommandButton.VisualEffect = 2 ),
release, it return like CommandButton.VisualEffect = 1.

I guess VFP call the CommandButton draw routine.

Send to MS.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform