Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox click - how to prevent changing the value?
Message
 
 
À
09/07/2010 01:36:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01471953
Message ID:
01471993
Vues:
63
>>Hi everybody,
>>
>>I added NODEFAULT and return in Checkbox Click event, but it still changes the value.
>>
>>How can I prevent it?
>>
>>Thanks in advance.
>
>Set it to ReadOnly or Enabled = false

The idea is - if the changes made on the tabless pageframe, I want to ask the user about saving the changes and prevent them leaving the page if they answer Cancel.

I have only 2 other controls on the form - TList ActiveX and a checkbox.

I tried using custom page with nodefault in its Deactivate, but it didn't work. So I'm now trying to put the code in the TList and Checkbox.

I tried using When event of checkbox, but even if I return .t. from when, click is not working...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform