Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tool bar appears
Message
From
01/12/2000 16:57:46
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00448346
Message ID:
00448352
Views:
8
>After re-compiling an .exe, I noticed that toolbars (Open, Print, Form wizard, etc) are appearing on the screen with my apps main menu. Where do I look or what setting do I change to delete this?

You can use somethign like this to hide and unHIde the toolbars when running your app:
dimension aToolbar[13, 2]
aToolbar[ 1, 1] = 'Color Palette'
aToolbar[ 2, 1] = 'Database Designer'
aToolbar[ 3, 1] = 'Form Controls'
aToolbar[ 4, 1] = 'Form Designer'
aToolbar[ 5, 1] = 'Layout'
aToolbar[ 6, 1] = 'Print Preview'
aToolbar[ 7, 1] = 'Query Designer'
aToolbar[ 8, 1] = 'Report Controls'
aToolbar[ 9, 1] = 'Report Designer'
aToolbar[10, 1] = 'Standard'
aToolbar[11, 1] = 'View Designer'
aToolbar[12, 1] = 'Project Manager'

* Hide VFP's toolbars.

for lnI = 1 to alen(aToolbar, 1)
	aToolbar[lnI, 2] = wvisible(aToolbar[lnI, 1])
	if aToolbar[lnI, 2]
		hide window (aToolbar[lnI, 1])
	endif aToolbar[lnI, 2]
next lnI


******** Rest of the app

* Redisplay VFP's toolbars.

for lnI = 1 to alen(aToolbar, 1)
	if aToolbar[lnI, 2]
		show window (aToolbar[lnI, 1])
	endif aToolbar[lnI, 2]
next lnI
Previous
Reply
Map
View

Click here to load this message in the networking platform