Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Toolbar to stay active
Message
 
 
À
13/03/2006 23:11:46
Joseph Mathai
Keyword-Tec Services
Bangalore, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Database:
Visual FoxPro
Divers
Thread ID:
01104026
Message ID:
01104027
Vues:
14
Sure,
_screen.AddProperty("oToolbar", CREATEOBJECT("mytoolbar"))
_screen.oToolbar.Show()
RETURN

DEFINE CLASS mytoolbar AS toolbar

	Caption = "Toolbar1"
	Height = 28
	Left = 0
	Top = 0
	Width = 63
	Name = "mytoolbar"

	ADD OBJECT command1 AS commandbutton WITH ;
		Top = 3, ;
		Left = 5, ;
		Height = 22, ;
		Width = 23, ;
		Caption = "C", ;
		Name = "Command1"

	ADD OBJECT command2 AS commandbutton WITH ;
		Top = 3, ;
		Left = 35, ;
		Height = 22, ;
		Width = 23, ;
		Caption = "U", ;
		Name = "Command2"

	PROCEDURE command1.Click
                * Comment
		KEYBOARD "{ALT+o}m"
	ENDPROC
	PROCEDURE command2.Click
                * Uncomment
		KEYBOARD "{ALT+o}n"
	ENDPROC
ENDDEFINE
>
>Is it possible to have a customised toolbar stay active in the main visual foxpro screen without any other form being active only the menu.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform