1. Re: David Cuny's editor/GUI

Ad Rienks wrote:

> The dialog in the box is black(transparent) instead of the colors
> (OF_DIALOG).

I got the same bug by calling message_box() twice in a row. The first time,
it displays correctly, and all following times, it is wrong.

The problem is in polygon() function in the routine graphic_window(), in
win95.e. The polygon is not being filled with the correct color. This is a
bit strange, because the command button which uses a similar call later
works just fine.

There is another anomoly - when I trace() the code, the problem corrects
itself. Remember that one of the big selling points of Euphoria is that
putting in trace code is not supposed to make problems appear or disappear.

If I put a trace() before the polygon, the trace screen of code comes up -
but with none of text colored, except for white and gray. After the call to
polygon(), all the colors appear on the trace screen correctly, and the
polygon is correctly drawn. If I comment out the trace(), the problem
returns.

I don't know what to make of this. I thought that the color WHITE was
somehow being redefined, but changing the fill color has no effect. Perhaps
the video move that I am doing is messing up the video palatte, and trace()
restores the values. Jamie was running into something similar on his
machine, and got pooh-poohed by the group, but I think that there could very
well be something tweaking the palatte, etc.

Maybe Robert can shed some light on this.

I *do* have a fix which will work until I can figure out why Euphoria is
getting confused by the colors. Somehow my function graphic_title() restores
the color settings. This is why the command button displays correctly - it
has text on it. So if you add the call:

   graphic_title( " ", {WHITE, WHITE}, row+1, col+1, 0, 0 )

before the first polygon() command in graphic_window() in the file WIN95.E
(or WIN31.E, or COPLAND.E, depending on which interface you are using), this
will restore the colors to their correct settings and the window will
display correctly. This places a space on the screen, which is immediately
covered over by the window.

Thanks for spotting the bug - I had seen it before, but was unable to repeat
it.

 -- David Cuny

new topic     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu