Skip to main content
Nik Ska
Known Participant
June 29, 2013
Question

Script window redraw

  • June 29, 2013
  • 1 reply
  • 4497 views

I'd like to add/remove elements from script window on button click. Is this possible?

This topic has been closed for replies.

1 reply

Known Participant
June 29, 2013

Yes It is. As far as I know

Just take a look at this method wondowObj.layout.layout(true)

Hope it is what you are looking for.

Inspiring
July 1, 2013

I think UI items have a "visible" attribute or something like that. Hiding the item is safer than deleting it if you're planning on making it re-appear later on.

Legend
July 1, 2013

It depends on what Nik's actual use is for. For example I'm working on a script that dynamically adds and removes buttons and adjusts the layout accordingly. Having them invisible would take up way to much space in the UI in my case. ft_toolbar is another example of UI elements being added and removed too.