Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create script elements on button click?

Explorer ,
Jul 12, 2021 Jul 12, 2021

I wan't to create a new panel and 2 buttons when a button is clicked, but I just can't figure out why the code I have so far doesn't work.

 

Can somebody help me out?

TOPICS
Scripting
293
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 12, 2021 Jul 12, 2021

If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up.

 

Mylenium

Translate
LEGEND ,
Jul 12, 2021 Jul 12, 2021
LATEST

If I remeber correctly you have to define the layouts already at the start and then only show/ hide them. They cannot appear in nested functions because they need to register right at the start of the script. There's several threads on this as it also pertains to changing icons and button lables dynamically. Spending a bit of time with a search may dig them up.

 

Mylenium

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines