PDA

View Full Version : Nest ctlactive and ctlvisible



nickdigital
07-08-2011, 04:52 PM
Is it possible to nest ctlactive and ctlvisible so ctl controls are dependent on others being visible and active? I've tried doing this and lscript complains about illegal nesting. Will ctlrefresh accomplish this or is ctlrefresh just for updating values?

evenflcw
07-08-2011, 04:58 PM
Hello again. :)

ctlrefresh. Why dont you just try it instead of asking? (Yes it works for updating most control attributes. It doesn't, or didn't, work for the title of a ctllistbox though. But this depended on the implementation of the ctllistbox rather than ctlrefresh. The listbox just wouldn't update the title value after initialization.)

nickdigital
07-08-2011, 05:01 PM
ctlrefresh. Why dont you just try it instead of asking? (yes it works for most things)

My brain has been inundated with lscript for the last couple weeks and I'm starting to code in my sleep. Was hoping to get a cheap hint, lol. :D

But yes, I should test it on my own. From the doc, their reference talks about updating values so I wasn't sure how to get it to refresh a ctlstate.