On Mon, May 20, 2002 at 12:42:09PM +0100, Angus Leeming wrote:
 
> On Monday 20 May 2002 11:56 am, Martin Vermeer wrote:
> > > - the rendering of parenthesis in the "Math delimiter" is often wrong or
> > > confused
> >
> > Confirm. The rendering in the show box top middle is botched. The logic
> > seems OK though.
> 
> Really?
> 
> FormMathsDelim::input(...)
>       ...
>       Pixmap p1, p2;
> 
>       fl_get_pixmap_pixmap(dialog_->button_pix, &p1, &p2);
>       fl_draw_bmtable_item(dialog_->bmtable, left, p1, 0, 0);
>       fl_draw_bmtable_item(dialog_->bmtable, right, p1, 16, 0);
>       fl_redraw_object(dialog_->button_pix);
> 
> Surely, we want to use the contents of the bmtable to redraw button_pix. As I 
> see it, we're redrawing bmtable. Don't we need to get the Pixmap from the 
> bmtable, with
>       Pixmap fl_get_bmtable_pixmap(FL_OBJECT *);
> and then use this in button_pix with
>       fl_set_pixmap_pixmap(FL_OBJECT * ob, Pixmap id, Pixmap mask);
> ?
> 
> Angus

That I wouldn't know... not familiar with those internals. What I meant
was that you get the right symbols by clicking on the appropriate 
buttens, and they are drawn on-screen correctly. It's only the show box
that shows the symbols in a funny way, sort-of greyed out (so it cannot be 
all wrong? why would it then show anything at all?)

The impression I get upon experimenting, is that the pixmaps are somehow
OR-ed with the () that comes up initially.

But I haven't touched this code. See fit to fix it as you can :-)
 
Martin

Attachment: msg38141/pgp00000.pgp
Description: PGP signature

Reply via email to