Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling Maint Toolbar
Message
 
 
À
12/01/2009 21:44:21
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01373047
Message ID:
01373058
Vues:
41
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform