• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Is there a way to get a Widget's name?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is there a way to get a Widget's name?

    I know we have SetWidget(), but is there an equivalent GetWidget() function that just returns the given name of a Widget? I'm looking to put some conditional logic into my program based on which widget called the program.

    I'm aware of gWidgetId, but wasn't sure if the Widget ID number will stay the same between exports or not

    Thank you

  • #2
    There currently is not...and you are correct in that you cannot rely on the gWidgetId. We will look into adding this. In the meantime, you would likely have to either rely on the gAction and/or an app variable value to condition the code.

    Comment


    • #3
      Alright, I'll figure out something with gActions for now then.

      Thank you!

      Comment

      Working...
      X