Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating buttons on the fly
Message
From
23/11/2001 12:08:21
 
 
To
23/11/2001 10:34:30
Mario Glas
ProSysPlus Europe
Weert, Netherlands
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00585132
Message ID:
00585158
Views:
29
>I want to create a number of buttons every time a user resizes that form.
>The number of buttons is different every time.

I'm not quite sure why you would want to do this, so this may not be useful, but perhaps you could maintain the Command Buttons you added to teh form by storing them in an array property on the form (you can use the EVALUATE() function to put them in there).

It could look something like:
this.AddObject(objectName, 'commandbutton')
this.aButtons[1] = EVAL('thisform.' + objectName)
Now just scan through the array to address the buttons.
Previous
Reply
Map
View

Click here to load this message in the networking platform