2019-12-25 01:01 AM
Hello,
I have an imageProgress in my design and I choose Appearence direction to right in designer.
After clicking generate code button, firmware cannot be compiled. When I look at the ScreenViewBase.cpp I see below code for error.
imageProgress1.setXY(174, 17);
imageProgress1.setProgressIndicatorPosition(0, 0, 48, 12);
imageProgress1.setRange(0, 100);
imageProgress1.setDirection(touchgfx::AbstractDirectionProgress::RİGHT);
imageProgress1.setBitmap(BITMAP_BATTERYICON_CHARGING_ID);
imageProgress1.setValue(100);
imageProgress1.setAnchorAtZero(false);
"I" character of right text is with a dot, so it cannot be compiled. compiler gives error about unknown character.
In Turkish there are upper characters of "i" with dot or without dot. Although this is a compiled code, I though maybe its a problem about my pc language. I changed my pc and keyboard language to English but it still has same problem.
In AbstractDirectionProgress.hpp file direction type is correct (upper "i" character is without dot) like below
typedef enum
{
RIGHT,
LEFT,
DOWN,
UP
} DirectionType;
types.h also like below
/**
* @typedef uint8_t Alignment
*
* @brief Defines an alignment type.
*
* Defines an alignment type.
*/
typedef uint8_t Alignment;
static const Alignment LEFT = 0; ///< Text is left aligned
static const Alignment CENTER = 1; ///< Text is centered horizontally
static const Alignment RIGHT = 2; ///< Text is right aligned
How can I solve this problem ?
2019-12-25 07:05 AM
Sorry, if I am miss understanding but it looks like that your fix is;
Change below line;
imageProgress1.setDirection(touchgfx::AbstractDirectionProgress::RİGHT);
as;
imageProgress1.setDirection(touchgfx::AbstractDirectionProgress::RIGHT);
RİGHT -> RIGHT
Regards,
Murat
2019-12-25 07:12 AM
Yes, I can change this line but it is touchgfx generated code.
So I dont want to touch this code. but if there is not a solution for this problem, I will edit generated code.
I am waiting a comment from ST.