Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Building FoxyClasses LocatorGrid at runtime
Message
From
09/03/2017 15:09:33
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
09/03/2017 13:33:59
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01648879
Message ID:
01648883
Views:
88
>Has anybody written code to create the FoxyClasses' LocatorGrid at runtime? I'm trying to do so and running into some issues. Wondering whether anyone has made this work?
>
>Tamar

Yes, It is really straightforward, ie:
Public oForm
oForm = Createobject('sampleForm')
oForm.Show()

Define Class sampleform As Form
	Height=600
	Width = 800
	Add Object myButton As CommandButton With Caption="Create Grid"
	Add Object myContainer As Container With Top=30,Height=770,Width=800, Anchor=15

	Procedure myButton.Click
		Thisform.myContainer.Newobject("myLocator","locatorgrid", "d:\foxyclasses\classes\grids.vcx","",;
			"* from (_samples+'data\customer')")
		With Thisform.myContainer.myLocator
			.Height = Thisform.myContainer.Height
			.Width = Thisform.myContainer.Width
			.Anchor = 15
			.Visible = .T.
		Endwith
	Endproc
Enddefine
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform