2019-11-25 09:30 AM
Is it possible to create a Text without ueing the Designer first? Seems like everything has to be done through the Text Manager.
2019-11-29 06:22 AM
Sorry, I don't think I can send you the entire project. T_GRAPHMINI is one of the enums in TextKeysandLanguage.hpp, he corresponding Translation in the excel sheet is GraphMini with Typography Mini
2019-12-02 01:00 AM
getSolidRect() is not what you think, i think. It returns the largest possible rectangle that is guaranteed to be solid.
Please use:
/**
* @fn const Rect& Drawable::getRect() const
*
* @brief Gets the rectangle this Drawable covers.
*
* Gets the rectangle this Drawable covers, in coordinates relative to its parent.
*
* @return The rectangle this Drawable covers expressed in coordinates relative to its
* parent.
*/
const Rect& getRect() const
{
return rect;
}
2019-12-02 02:08 AM
for some reason I can't call this on xDivText, xDivText.getRect() in the debugger doesn't work, while xDivText.getTypedText() for example works
2019-12-02 02:20 AM
Just inspect xFivText after calling resizeToCurrentText() and find the rect member.
/Martin
2019-12-02 03:07 AM
This doesn't return a rect property.
{<touchgfx::TextAreaWithWildcardBase> = {<touchgfx::TextArea> = {<touchgfx::Widget> = {<touchgfx::Drawable> = {<No data fields>}, <No data fields>}
there is no drawable to the text area?
2019-12-02 06:29 AM
Rect rect
is a member of Drawable of which TextArea (With or without wildcard) is a type. I think there's something wrong with your debugger setup.
It's very essential to TouchGFX to be able to determine the rect of a Drawable in order to optimize rendering.
/Martin
2019-12-02 06:30 AM
You could try using GDB on the simulator project if you're having trouble with your target debugger.
/Martin
2019-12-02 07:17 AM
I am using the CubeIDE, but haven't really edited anything in the debugger settings. When using texts set by the designer, I can't access the rect property either.