Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disabling Maint Toolbar
Message
 
 
To
12/01/2009 21:44:21
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01373047
Message ID:
01373058
Views:
36
This message has been marked as the solution to the initial question of the thread.
>I need to disable the business object toolbar on a maintenance form. I set some rules in the post and pre save hook, and want to ensure the form cannot be closed until all issues are resolved (and then subsequently turn the toolbar back on). Setting the thisform.claseable helps, but the user can still click the form toolbar above.
>Thoughts?
>TIA
>Amanda

Hi Amanda,

I think this is not what you're looking for, but may be can give you some ideas.

This is what I have in DataEntry (my special class) Activate method
if vartype(.oToolbar) = "O"
		if .lHideDataEntryButtons
			.oToolbar.HideDataEntryButtons()
		else
			.oToolbar.ShowDataEntryButtons()
		endif
		if .lHideNavigationButtons
			.oToolbar.HideNavigationButtons()
		else
			.oToolbar.ShowNavigationButtons()
			if not empty(.cNavigationGridName)
				local loGrid
				loGrid = evaluate(.cNavigationGridName) && This property holds a full path to the grid
				m.loGrid.RefreshToolbars()
			endif
		endif

		if type('thisform.oToolBar.cmdClose') = 'O'
			.oToolbar.cmdClose.enabled = .t. && Make sure that close button is always enabled
		endif
	endif
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform