Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connect Toolbar button to a form
Message
From
14/04/2003 10:56:42
 
 
To
14/04/2003 10:45:28
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00777177
Message ID:
00777210
Views:
10
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform