cancel
Showing results for 
Search instead for 
Did you mean: 

Weird artifact showing in my TextAreaWithOneWildcard

Sandy.Dahl
Associate II

Every text areas I place have cursor visible. From some of the areas I don't want to have cursors. How do I hide them?

17 REPLIES 17
Martin KJELDSEN
Chief III

Hi @Sandy.Dahl​,

Text areas in TouchGFX do not support cursors. Can you show me a screenshot? Something funky must be going on :)

/Martin

Hi Martin!

Interesting, them I'm probably doing it wrong. It looks like this:

0690X000008wE3VQAU.jpg

Hi @Sandy.Dahl​,

That definitely looks "interesting" and actually does look like a cursor :) Are you able at all to share your project, or part of it, with me so that i can see this for myself and maybe debug it?

Thanks!

/Martin

Hi again!

Which part do you want to see? The view or presenter of this screen?

Can it because I'm still using version 4.9.3...?

Thank you so much for your quick answer!

/ Sandy

Hi Sandy,

No problem. 4.9.3 is fine, i can upgrade the project here.

I just need an application that can show me the specific view you're seeing the issue with.

/Martin

Hi Martin!

Sorry, can't share more than this.

From view.hpp:

TextAreaWithOneWildcard MeasurementText;

Unicode::UnicodeChar MeasurementBuffer[9];

uint32_t MeasurementValue = 0;

From view.cpp:

MeasurementText.setPosition(182, 144, 164, 37);

Unicode::strncpy(MeasurementBuffer, Unicode::EMPTY, 1);

MeasurementText.setWildcard(MeasurementBuffer);

MeasurementText.setTypedText(TypedText(T_SCREEN));

MeasurementText.setVisible(false);

void InfoView::setTextFieldData(uint32_t data)

{

      MeasurementValue = data;

      Unicode::snprintf(MeasurementBuffer, 9, "%u", MeasurementValue);

      MeasurementText.invalidate();

}

Thanks again for your help.

/ Sandy

There's nothing in that code that looks suspicious at all.

Instead of Unicode::strncpy(MeasurementBuffer, Unicode::EMPTY, 1), could you try MeasurementBuffer[0] = 0 ?

/Martin

No change in outcome with your suggestion unfortunately... What to try now?

Hi Sandy, since i can't try this myself we can only speculate.To me it simply looks like the character "|". Can you check your buffers for that unicode? U+007C.