Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to Define Winodow and to add objects to i
Message
 
 
To
16/11/1998 09:16:50
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00157806
Message ID:
00157859
Views:
19
Mark,

Don't use DEFINE WINDOW, do this instead:
x = createobject( "Form" )
x.Visible = .t.
x.AddObject( "cmdTest", "CommandButton" )
with x.cmdTest
   .Top = 100
   .Left = 100
   .Visible = .t.
endwith
When you AddObject() something to a form it's Visible is set to .f. so you can manipulate it before making it show on the form.

>I used the command 'Define Window' to create an about screen.
>
>I was wondering if there was a way to addobjects or createobjects
>on this window?
>
>I tryed to use createobject to create a command button but it would not display at all.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform