Page 1 of 1

App builder

Posted: Sun Mar 28, 2021 8:49 pm
by wayne_millard
Hi Matrix team,

How can you do tool tips? Can you change the colour of the seven segment display with a veriable so you can change in the code.

Thanks
Wayne M

Re: App builder

Posted: Mon Mar 29, 2021 10:41 am
by Steve-Matrix
For tooltips, you could create an invisible object with text. When you want the tooltip to show, position it correctly and set the text appropriately, then make it visible.

For the 7seg colour, you may be able to use the SetValue built-in property function to directly modify the colour that you want to change. You will need to do this for each individual segment.

Other users might know a better way of doing this.

Re: App builder

Posted: Mon Mar 29, 2021 10:41 pm
by BenR
Hi Wayne,

Tooltips for properties can be added by clicking in the drop down here inside the edit property window.
Props.jpg
Props.jpg (14.04 KiB) Viewed 2167 times

As for changing the value of a propety, this is done by clicking on the property you want to change to get the property variable at the bottom of the property window.

Then as Steve says use the Component.Property.SetValue function to set the RGB value of the property.
SetValue.jpg
SetValue.jpg (97.77 KiB) Viewed 2167 times