Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar help?
Message
De
24/08/1998 11:38:34
 
 
À
24/08/1998 10:44:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00129312
Message ID:
00129335
Vues:
26
I'm sorry, some corrections at code:
DEFINE CLASS yourForm AS FORM
	ShowWindow = 2 && as top-level form
	oToolBar = .NULL.
	&& ... other declarations

	PROCEDURE Show( nShow)	&& or Activate event... as you want it
		IF TYPE( "nShow") = "N"
			DODEFAULT( nShow)
		ELSE
			DODEFAULT()
		ENDIF
		WITH this
			IF TYPE( ".oToolBar") # "O" .OR. ;
				ISNULL(.oToolBar)
				.oToolBar = CreateObject( "yourToolBar")
				.oToolBar.Show
			ENDIF
		ENDWITH
	ENDPROC
	PROCEDURE Destroy()
		WITH this
			.oToolBar.Visible = .F.
			.oToolBar = .NULL.
		ENDWITH
	ENDPROC
ENDDEFINE

DEFINE CLASS yourToolBar AS TOOLBAR
	ShowWindow = 1 && in top-level form
	&& ... other declarations

ENDDEFINE
This code works fine, was checked!

Best regards

Alex.
Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform