Labelxx.Text = My Text

Moderator: Moderator Group

Labelxx.Text = My Text

Postby Prodigy911 » Sun Nov 20, 2016 1:23 pm

Hi all -

is there a possibility to receive the name of Custom Script as a Label Output?

I got many Presets in a WD File and want to show the selected Cue as a Label Output.

With Label66.text = abcd (instead of abcd i would like to insert MyText or something like this, to directly
show the name of the Button. So - everytime i rename the button, the shown text changes automatically
when pressed.

Any ideas? ;)
User avatar
Prodigy911
 
Posts: 12
Joined: Sat May 14, 2011 12:26 pm
Location: Wiesbaden - Germany

Re: Labelxx.Text = My Text

Postby Benni_M » Mon Nov 21, 2016 11:13 am

Hi Benjamin,
I don't think there is a command to get the name of a button.
But here an idea.
You have a variable "button_name"

button_name = change the text and label

labelxx.text = button_name
WDCustomScriptText,MyID,button_name


Change the variable and the button text and label change on click.

Best,
Benni M. :-)
Benni_M
 
Posts: 82
Joined: Thu Apr 12, 2012 3:45 pm

Re: Labelxx.Text = My Text

Postby Prodigy911 » Mon Nov 21, 2016 2:19 pm

Hey Benni ;)

This was the way i did it now.

I thougt there is a more easy way to handle it :)


Maybe put it on the wishlist ;)

Best
Benjamin
User avatar
Prodigy911
 
Posts: 12
Joined: Sat May 14, 2011 12:26 pm
Location: Wiesbaden - Germany

Re: Labelxx.Text = My Text

Postby Daniel Kaminski » Tue Nov 22, 2016 12:32 am

WD Version 6 will give you way more options in this regard.
The Script Language in WD6 got a huge upgrade, so please be patient for a couple more days.
--
Daniel Kaminski

Technical Support + Betatesting
User avatar
Daniel Kaminski
 
Posts: 824
Joined: Tue Jul 22, 2008 10:55 am
Location: Herten, Germany


Return to Widget Designer V4.7

Who is online

Users browsing this forum: No registered users and 4 guests