ScriptSpot

Forum topic · General Scripting

button width Action

By JokerMartini · 2011-04-05

Description

can't get this to work. I want to change the width of a button in the dialog when it is pressed.

try(Destroydialog rlTest)catch()

rollout rlTest "test"
(
checkbutton ckbtnObjID "Obj ID" width:87 height:24 pos:[5,5]
button btnObjIDRandomAll "|" width:12 height:24 pos:[80,5] visible:off

on ckbtnObjID changed state do
(
if state == true then
(
rlRenderSetup.ckbtnObjID.width = 75
btnObjIDRandomAll.visible = on
)
else if state == false do
(
ckbtnObjID.width = 87
btnObjIDRandomAll.visible = off
)
)

)
createDialog rlTest 186 187

Comments (2)

JokerMartini · 2011-04-29

Bummer,
That is a bummer.

Graph · 2011-04-24

its a creation-only property for most if not all UI-Items