Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a project around a toolbar?
Message
De
02/05/2006 10:48:32
Sid Meyers
Omegaware Consulting, Inc.
Minnesota, États-Unis
 
 
À
27/04/2006 11:46:09
Mark Phillips
Erw Custom Programming Inc.
Waterford, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01117141
Message ID:
01118420
Vues:
10
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform