Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VfpTimePicker class
Message
De
04/01/2018 18:58:35
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
MS SQL Server
Divers
Thread ID:
01656967
Message ID:
01656974
Vues:
46
Hi
2 solutions to change the olecontrol possibility to be enabled/disabled:

1.add just a commandbutton on the form to switch between 2 states:enabled/disabled
*in click event
with thisform.olecontrol1.object
.enabled=!.enabled
endwith
the key is "object" otherwise cannot change the dtPicker state.

2.can be also a checkbox with this code
*in interactiveChange() event
thisform.olecontrol1.object.enabled=iif(this.value=1,.t.,.f.)
the visual indication of a disabled control is that it is grayed and dont react to events (user or by code).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform