Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Inconsistent Default Button Behavior
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01008267
Message ID:
01008285
Vues:
17
Hi Brad,

It looks like a bug to me too. I see the same in VFP8SP1.

>Hi guys...
>
>Long time no talk... Several of you "old timers" may recognize me.
>
>I have something that looks like a bug, but I want to post it here in the message area and see if it's been reported/experienced yet.
>
>I've decided to finally enter the 21st century and got a copy of VFP9 after working in VFP6-ville for the last several years.
>
>I'm not sure if this is something that is new to VFP9 or if it started showing up in 7 or 8.
>
>Platform: VFP9 (09.00.0000.2412)
>
>Problem: Default Button behavior is inconsistent
>
>To reproduce:
>1) Go to the Windows Control Panel, open up Mouse, go to the Pointer Options Page, and check the "Snap To" checkbox (i.e. Automatically move pointer to the default button in a dialog box)
>2) CREATE FORM Junk
>3) Add a standard CommandButton to the form and set its .Default property to .T.
>4) Run the form. The mouse pointer DOES NOT jump automatically to the default button. That's fine... it never did that in VFP6, so it's behaving fine as far as I'm concerned.
>5) CREATE CLASS cmdDefault OF Junk AS commandbutton
>6) Set this new button class's .Default property to .T.
>7) Save the class
>8) CREATE FORM Junk2
>9) Put the newly-created Junk.VCX/cmdDefault button on the form.
>10) Run the form. Now the mouse pointer DOES jump automatically to this button. This is inconsistent. Both JUNK.SCX and JUNK2.SCX should work exactly the same.
>
>Comments:
>In other words, if you run a form with a command button whose .Default property is set to .T. in the property sheet, the "snap-to" behavior DOES NOT happen.
>But if you run a form with a button that INHERITS a .Default property of .T., then the "snap-to" behavior DOES happen.
>
>Additional comments:
>Again, in VFP6, no button with .Default=.T. EVER got the "snap-to" behavior. I wouldn't expect it to. I only expect the "snap-to" behavior to occur in Windows-type dialogs (like MESSAGEBOX or something). But NOT in any kind of VFP form.
>
>So whaddyathink?
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform