On Thu, 16 Aug 2007 13:37:26 -0700, Al Koch <[EMAIL PROTECTED]>
wrote:

>Hello,
>
>I have an window that contains a button.  The button has a callback handler 
>and when the button is pushed the callback (among other things) calls 
>labelcolor() to change the color of the label. This is working fine.  However, 
>in another part of the application I programmatically call the callback 
>function directly (without the button being pushed) and while  labelcolor() is 
>still being called, the button's label does *NOT* change color.  To get the 
>color to change I have to do something like minimize and restore the window to 
>get the button to be "re-painted".  I suspect that the event of pushing the 
>button triggers a "repaint" so that's why the color changes when I push the 
>button.  How can I force a repaint of the button so that the label color 
>changes when I call labelcolor() programmatically?
>
>Thanks.
>Al Koch

Thank you to everyone that responded.  Here's the end result.  All of
the suggestions should have worked so "in desparation" I did a complete
rebuild of the whole project (instead of the incremental build that was
happening automatically).  The problem disappeared!

Both redraw() and redraw_label() work but I suppose that redraw_label()
is "more precise" here.

Thank you again.

Al koch

Thank you.

Al Koch
[EMAIL PROTECTED]
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to