Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating buttons on the fly
Message
From
23/11/2001 10:44:28
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
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:
00585133
Views:
24
This message has been marked as the solution to the initial question of the thread.
Hi Mario do the following:
ThisForm.addobject(variable-name,classname)
ThisForm.&variable-name..Caption = 'Changed Caption'
ThisForm.&variable-name..Top = 100
...
>Hi,
>
>I want to create a number of buttons every time a user resizes that form.
>The number of buttons is different every time.
>
>The name of the button is in a variable + a unique number.
>When i create the button with ThisForm.addobject(variable-name,classname), i cann't use the variable-name anymore to change the properties of the button
>
>How can i change the properties of these buttons because i cann't call a button with the variable name ?
>
>The source code is in "For" loop for every time this button has to be created.
>
>Who can help me, i'm just starting with FoxPro.
>
>Mario Glas
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform