Jump to content

fractal

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I have a different (I think) issue with textedit and was just informed there was a related fix 2 months ago. Did you try updating ugfx to the current git version?
  2. Hi Joel, thank you for the quick answer. I actually checked the changelog the other day and did not find that fix. I now updated ugfx and - after fiddling with types and definitions for a while to get it to play nice with my chibios and the STM-HAL I use for the 469-disco-board - I found it doesnt change anything. Once I have time I will try dynamic text. Best, Thomas
  3. Hi everyone, I have been playing around with a ugfx gui for a bit and it has been working well. Now I found the need to rewrite the text of several Textedit-widgets at runtime and ran into some problems: the text is written correctly first, but when I place the cursor in the widget to edit the newly loaded text, an unrelated text shows up. The text which shows up seems to be some buffer garbage, stuff I wrote to labels at some point. I changed the buffer involved in the writing of the textedit (now short_buffer, used for nothing else) and the text is the same (or similar). Is this a bug or am I using the system wrong? I suppose using dynamic text could provide a workaround, but I thought I would ask before trying too many things. I am working with a recent git version of ugfx and Chibios 18.2. Thank you for any help, Thomas The code for writing the textedit: (works fine for labels) // write the desired to text to a buffer using a chibios print function chsnprintf(short_buffer, 8, "%.1f", TCU.CE->T_max); // write buffer to textedit gwinSetText(ghTextedit_max_temperature, short_buffer, FALSE);
×
×
  • Create New...