Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbars
Message
De
27/12/2001 06:55:08
John Marrone
Bloodstock Research Inc.
Lexington, Kentucky, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Toolbars
Divers
Thread ID:
00598376
Message ID:
00598376
Vues:
49
Hi
I now have 2 toolbars. The main toolbar opens with the main form. When the
user selects Print Report an other form opens and opens a toolbar that is
docked on the left side of the screen. It has 2 buttons right now. The toolbar
opens and docks on the left but the buttons are about a third of the way down
the screen along with the grab handles. So I have a toolbar that is docked on
the left side of the screen just below the toolbar that is docked at the top of
the screen. About 2 inches of blank toolbar then the grab handle and my two
buttons. Here is the code inside the report forms activate method.
frmMain.oToolBars[2].Top = -1
frmMain.oToolBars[2].Left = -1
frmMain.oToolBars[2].SHOW
Here is the code in my main form:
WITH THIS
	IF TYPE('.oToolBars[1]') = 'O'
		RETURN
	ENDIF
	.oToolBars[1] = NEWOBJECT('tbrMain','mcp2cls')
	.oToolBars[2] = NEWOBJECT('tbrReports','mcp2cls')
	.oToolBars[1].SHOW
	.oToolBars[1].DOCK(0) && Dock top
	.oToolBars[2].DOCK(1) && Dock left
ENDWITH
When the reports form first opens I think I see it dock where it should but then moves down the screen.
I have a fast computor and this happens so fast I amnot sure but it looks like it does dock right then
readjusts the buttons down the toolbar.

Can anybody help. Thanks
Thanks
John Marrone
Bloodstock Research Inc
marrone@brisnet.com

To much of a good thing is a good thing!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform