TouchGFX designer Slider value changed interaction - set wildcard
I made a simple project with slider and wildcard.
Why do I have a "?" instead of the value, even with wildcard range with 0-9
Any idea ?
I made a simple project with slider and wildcard.
Why do I have a "?" instead of the value, even with wildcard range with 0-9
Any idea ?
Hi @COSEBE,
I've just verified that you cannot do what you want. There's no way to get the value of the slider into the wildcard buffer automatically (yet) - It's bad UI design that makes you think you can.
So instead you will, in your action, use "call virtual function" (in this case i've named it "setValue" which will have the int value as a parameter - You can then copy this to your buffer manually and invalidate the textarea.
void Screen1ViewBase::sliderValueChangedCallbackHandler(const touchgfx::Slider& src, int value)
{
if (&src == &slider1)
{
//Interaction1
//When slider1 value changed call virtual function
//Call setValue
setValue(value);
}
}Now just override the setValue() function in your concrete view.
/Martin
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.