hello, someone could help me ... I have several buttons "pickbutton" I would customizer there any way? all the buttons "pickbutton" has the same function below.
on button1 picked obj do
(
if obj != undefined do
(
button1.text = obj.name
)
)
on button2 picked obj do
(
if obj != undefined do
(
button2.text = obj.name
)
)
---more than 7 buttons
Comments (4)
Comment policy
autoDisplay ftw!
If you set the autoDisplay to true, all this is done automatically.
From the doc:
autoDisplay:
When set to true, the name of the picked object will be automatically displayed as the text on the button. If false or not specified, the button caption will not be changed.
perfect ... I did not see this in help ... thanks a million
Something like this?
very good, exactly what I needed, optimized several lines.
thanks man