cancel
Showing results for 
Search instead for 
Did you mean: 

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

HPham.1590
Senior

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

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

3 REPLIES 3
Martin KJELDSEN
Chief III

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

Many thanks for your reply, Martin.

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

Best Regard,

Hieu

Great!