Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect Toolbar button to a form
Message
De
14/04/2003 10:56:42
 
 
À
14/04/2003 10:45:28
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00777177
Message ID:
00777210
Vues:
9
Sorry about the double posting of this thread, I got "click happy"

Ok, I've got my button added and am able to enable it or disable it with the isenabled() method.

Now lets say my form is up, my button is enabled on the toolbar. How do i disable the button on the toolbar from the form? (interactively)

appapplication.createstates
this.ostatemanager.DefineAction('Form Carry', 'zcarry')
thisform.isneabled
LPARAMETERS cMethod, cWorkArea
IF m.cMethod='zcarry'
	DO CASE
		CASE THISFORM.chkmy2.getvalue()=1
			RETURN 3
		CASE THISFORM.chkmy2.getvalue()=0
			RETURN 1
	ENDCASE
ENDIF
RETURN DODEFAULT(m.cMethod, m.cWorkArea))
thanks
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform