Skip to main content
HPham.1590
Associate III
August 28, 2020
Solved

[TouchGFX] Can not visualize item value in ScrollWheel Touch GFX

  • August 28, 2020
  • 3 replies
  • 1130 views

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

This topic has been closed for replies.
Best answer by Martin KJELDSEN

"?" 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

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
August 31, 2020

"?" 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

HPham.1590
Associate III
September 1, 2020

Many thanks for your reply, Martin.

It's exactly that I have forgotten specify a unicode range for wildcard chars.

Best Regard,

Hieu

Martin KJELDSEN
Principal III
September 1, 2020

Great!