Associate III
December 25, 2019
Question
imageProgress Direction text error (RIGHT text)
- December 25, 2019
- 2 replies
- 997 views
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 alignedHow can I solve this problem ?
