Mail Archives: djgpp/1999/02/22/07:23:52
The Lee, You Know Who writes:
> 1.) why does the background color of the textout() functions alternate
> between red and black? (e.g. click on "rectangle", background of textout
> is black, click on "circle", background of textout is red, click on
> "triangle", background of textout is black, etc ...)
This one is answered in the Allegro FAQ, which says:
The textout() function doesn't work after I use any of the GUI routines!
One of the GUI objects has changed the text_mode() setting while it
was drawing itself. Call text_mode() again to select whatever
background color you want to use.
> 2.) why is there a tick beside the 'circle' menu option? how can i
> remove that tick?
You aren't initialising the flags field in your menu structures, so
it will be containing random garbage. Sometimes, that garbage might
happen to contain a D_SELECTED bit, which displays the check mark.
You need to make sure the flags are zeroed.
Shawn Hargreaves.
- Raw text -