Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why don't disabled buttons show disabled bmp?
Message
De
28/06/2005 10:18:52
 
 
À
28/06/2005 04:18:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01026662
Message ID:
01027033
Vues:
19
>
>* StdToolbar.Refresh - StdToolbar is of class container
>DoDefault()
>With This
>    .NewButton.Enabled		= .F.
>    .DeleteButton.Enabled	= .F.
>    .FindButton.Enabled		=  Not Thisform.DataChanged
>    .PrintButton.Enabled	= .F.
>Endwith
>

* with ASSERT ON, add this
ASSERT this.SaveButton.Enabled

>* The SaveButton which is giving me trouble is (presumably) refreshed in
>* DoDefault() with
>
>* SaveButton.Refresh
>This.Enabled = Thisform.DataChanged
>
>
>
>
>>>Hi Fabio,
>>>
>>>Nothing, but that used to work just fine in my other apps.
>>>Any suggestions?
>>>
>>>>>In my toolbar.refresh method i turn enabled on/off for various buttons.
>>>>>I know that the buttons are disabled, because nothing happens when I click them, but the picture (bmp or ico) still shows as if they are enabled.
>>>>
>>>>Buttons's DisablePicture is ?
>>
>>Have you check the CommandButton.enabled value? It can to be .T. with toolbar.enabled .F.
>>Can you post disabling code ?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform