2020-08-28 01:12 AM
Hello, I'm using TouchGFX to create a Scroll Wheel. I created 2 Container and setNumber function as this guide (https://support.touchgfx.com/docs/development/ui-development/ui-components/containers/scroll-wheel/),
but I met so much "?" on my Scroll Wheel.
Below is my function: (in CustomContainer - LEDMenuElement.cpp)
void LEDMenuElement::setNumber(int16_t value)
{
Unicode::snprintf(led_idBuffer, LED_ID_SIZE, "%d", value);
// Unicode::itoa(value, led_idBuffer, LED_ID_SIZE, 10);
led_id.invalidate();
}
And my code in Screen1View.cpp:
void Screen1View::LedScrollWheelUpdateItem(LEDMenuElement& item, int16_t itemIndex)
{
item.setNumber(itemIndex);
}
void Screen1View::LedScrollWheelUpdateCenterItem(SelectedTemplate& item, int16_t itemIndex)
{
item.setNumber(itemIndex);
}
How I can fix this issue? Many Thanks
Solved! Go to Solution.
2020-08-31 08:18 AM
"?" is indicative of TouchGFX not being able to render a particular glyph/unicode (Because it cannot located it).
Check your generated/ folder to see if that glyph was generated. Did you remember to specify a unicode range for wildcard chars?
/Martin
2020-08-31 08:18 AM
"?" is indicative of TouchGFX not being able to render a particular glyph/unicode (Because it cannot located it).
Check your generated/ folder to see if that glyph was generated. Did you remember to specify a unicode range for wildcard chars?
/Martin
2020-08-31 07:08 PM
Many thanks for your reply, Martin.
It's exactly that I have forgotten specify a unicode range for wildcard chars.
Best Regard,
Hieu
2020-09-01 01:11 AM
Great!