Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create and add checkbox ......
Message
 
To
26/10/2005 12:45:00
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062271
Message ID:
01062273
Views:
17
>HI,
>
>I have un pageframe and I would want to create and add to it an Checkbox and a text box by program
>
>
>regards

In which page?
Supposing you want to add them in Page1 (or whatever the name of page is)
thisform.PageFrame1.Page1.AddObject("Check1","CheckBox")
thisform.PageFrame1.Page1.AddObject("Text1","TextBox")

WITH thisform.PageFrame1.Page1.Check1
     .Top      = 1
     .Left     = 1
     .Caption  = "Added CheckBox"
     .AutoSize = .t.
     .Value    = .f. && or zero if you want
     .Visible  = .t. && Most important. All programaticly added controls are unvisible by deafult
ENDWITH

WITH thisform.PageFrame1.Page1.Text1
     .Top      = 15
     .Left     = 1
     .Caption  = "Added TextBox"
     .AutoSize = .t.
     .Value    = "Bla Bla"
     .Visible  = .t. && Same as previous
ENDWITH
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform