Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar help?
Message
De
24/08/1998 10:44:21
 
 
À
24/08/1998 10:26:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00129312
Message ID:
00129320
Vues:
21
>I've asked this question several times and have recieved several responses, but so far I'm still unsuccessful. I'm trying to use a toolbar with a top level form. I kind of understand that the toolbar object has to be created after the top-level form and it's visible property then set to true. I've tried this but the toolbar shows up for a second in the top level form, and the docks to the foxpro screen. Thanks in advance for any help provided.

Hello, John,

Here's the sample code:
DEFINE CLASS yourForm AS FORM
	ShowWindow = 2 && as top-level form
	oToolBar = .NULL.
	&& ... other declarations

	PROCEDURE Init()
		WITH this
			.oToolBar = CreateObject( "yourToolBar")
			.oToolBar.Show()
		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
Best regards

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

Click here to load this message in the networking platform