PDA

View Full Version : refreshing menue after choosing object in a list



Svenart
12-08-2009, 09:58 AM
hello,

Im working on a new script and have a problem with this list boxes (ctllist). Is it possible in lscript to change the values in the menue regarding to wich object I have choosed in the list?

for example: on the menue left side are the controls for a light (color,intensity...). On the right side is a list where you can choose your light. If a light has been choosed now, the controls on the left should show the values of the selected light...

is this possible in lscript? Can anybody give me a hint?

xchrisx
12-08-2009, 10:45 AM
I think you may be able to do it using ctlrefresh, but I havent messed with it enough to be sure.

http://mikegreen.name/Lscript/Source/Control_Commands.htm#ctlrefresh

evenflcw
12-08-2009, 10:47 AM
nm. misunderstood.

EDIT: It's requpdate([ctlid optional]) to update controls. So you would call this from the UDF defined by ctlrefresh() unless it doesn't do that automatically (likely) ... or just call it from the ctllistbox select UDF.

Svenart
12-08-2009, 11:32 AM
thank you both very much for your help :) I will try it out.