Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a Combobox in the activeX ToolBar
Message
From
26/02/2005 16:17:24
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Adding a Combobox in the activeX ToolBar
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00990914
Message ID:
00990914
Views:
59
Hello Everybody

is it possible to add a combobox to the ActiveX ToolBar? i am able to add the combobox, but its invisible (i tried .visible=.t.).
ToolBarTest = NEWOBJECT("Form1")
ToolBarTest.SHOW()
READ EVENTS
RETURN


DEFINE CLASS form1 AS FORM
	HEIGHT = 100
	WIDTH = 300
	DOCREATE = .T.
	AUTOCENTER = .T.
	CAPTION = "Test"
	NAME = "Form1"


	ADD OBJECT _toolbar1 AS _toolbar WITH ;
		TOP = 0, ;
		LEFT = 0, ;
		HEIGHT = 24, ;
		WIDTH = 793, ;
		NAME = "_ToolBar1"

	PROCEDURE destroy
		CLEAR EVENTS
	ENDPROC

	PROCEDURE _ToolBar1.INIT
		WITH THIS.BUTTONS
			.ADD(;
				1, ;
				"_Main_Exit", ;
				"Exit", ;
				0)
		ENDWITH
		THIS.ADDOBJECT("Test", "combobox")
		THIS.Test.VISIBLE = .T.
	ENDPROC
ENDDEFINE

DEFINE CLASS _toolbar AS OLECONTROL
	OLECLASS = "MsComCtlLib.ToolBar.2"
	HEIGHT = 42
	WIDTH = 100
	ALIGN = 1
	NAME = "_toolbar"

ENDDEFINE
Thanks for all your help!
Next
Reply
Map
View

Click here to load this message in the networking platform