Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Building FoxyClasses LocatorGrid at runtime
Message
De
09/03/2017 15:09:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
09/03/2017 13:33:59
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01648879
Message ID:
01648883
Vues:
89
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform