Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a project around a toolbar?
Message
From
02/05/2006 10:48:32
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, United States
 
 
To
27/04/2006 11:46:09
Mark Phillips
Erw Custom Programming Inc.
Waterford, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01117141
Message ID:
01118420
Views:
11
Mark,

Yes, you can definitely do this.

Create a toolbar subclass.

Create a form. In the form.activate method you'll need the following code:
*Hide the VFP main window
_vfp.Visible = .F.

*Check to see if the Toolbar has been instantiated
IF TYPE("THIS.oToolbar.Name") <> "C"
	thisform.oToolbar = CREATEOBJECT("OrdToolbar")
	
	thisform.oToolbar.dock(1)
	thisform.oToolbar.show()
ENDIF 
You'll also need to make sure your form.showwindow is set to "2 - As Top-Level Form"

That should do it!

HTH-

Sid Meyers



>Is it possible?
>
>I would like to create an application (exe) that is just a toolbar that I can dock on the desktop? I understand how to create the toolbar class, but not sure how to make it work or if it is even possible outside the VFP _screen?
>
>Thank You
>Mark
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform