Quantcast
Channel: Forum - Recent Threads
Viewing all articles
Browse latest Browse all 5781

RE: Change GUIX text prompt COLOR property

$
0
0

Thanks. I know it could appear a stupid task, but I am still not aple to change properly a color of a text prompt.

I need to toggle the color of a prompt every time it is pressed.

I tryed the following but it did not work:

unsigned int flag = 0;

...

case GX_SIGNAL(ID_PROMPT, GX_EVENT_CLICKED):

 if(flag==0)

 {

   flag = 1;

   gx_widget_style_add(ID_PROMPT,GX_STYLE_DRAW_SELECTED);

 }

 else

 {

   flag = 0;

   gx_widget_style_add(ID_PROMPT,GX_STYLE_NONE);

 }

 gx_system_dirty_mark(ID_PROMPT);

The gx_style_draw_selected the first time works, but the gx_style_none is never called or it doesn't works. How to toggle te color property of the prompt every time it is pressed?

Thank you!


Viewing all articles
Browse latest Browse all 5781

Trending Articles