button width Action

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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
JokerMartini's picture

Bummer, That is a bummer.

Bummer,
That is a bummer.

John Martini
Digital Artist
http://www.JokerMartini.com (new site)

Graph's picture

its a creation-only property

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

Raphael 'Insanto' Steves
http://Graph.Net84.Net

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.