Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bizarre change of 'default' property in a commandbutton
Message
From
06/09/2000 04:50:41
 
 
To
05/09/2000 13:18:45
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00412551
Message ID:
00412815
Views:
17
This is not posible. I have a lot of forms with several commandbuttons and 'default' properties remains .F. so i can pass through fields with 'enter' key without activating 'click' of any commandbutton.
'Default' property must not change value by him self without code that order it.



>>I have a form with a container (or a commandgroup, doesnt matter) with 6 commandbuttons. Every command buttons have 'default' property value .F.
>>When in 'init' event of form, i set the focus to the first commandbutton of the container, property 'default' of this commandbutton change to .T.
>>I've tested it with 'set step on' and it's just in this momento when occurs 'thisform.barra.buscar.setfocus()'
>>There's no code in class.
>>¿Any ideas?
>>TIA
>
>
>It's the built-in behavior of the command buttons. It's designed this way so that when a button has focus, the user can press Enter to simulate a click.
Saludos,
A.G.P.
---------
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform