In the rendering engine updates, I removed PG_GROP_DIM because nothing was using it.
Also, with the more flexible LGOP support, it is no longer necessary. To dim an area,
you can set the LGOP (with pgSetLgop for PGFX, or the PG_GROP_SETLGOP gropnode) to
PG_LGOP_SUBTRACT (or PG_LGOP_MULTIPLY to waste CPU) and draw a rectangle of the
appropriate color. I just added a new LGOP, PG_LGOP_STIPPLE, that simulates the
behavior of the old defaultvbl implementation of PG_GROP_DIM, (drawing pixels in a
checkerboard pattern)
If you are referring to dimming the screen when a popup box is displayed, this has
always (well, for a long time anyway) been available in the themes, but none of the
themes use it :)
(Actually the Aqua theme has some backdrop code, but it's commented out)
The popup widget will render a fillstyle in the "backdrop" property before
drawing itself. For example, to have a theme stipple a black rectangle behind popup
boxes, add these lines to the theme's "object popup" block:
backdrop = fillstyle {
SetLgop(PG_LGOP_STIPPLE);
Rect(x,y,w,h);
};
On Wed, 09 May 2001, Philippe Ney wrote:
>
> Hi Micah,
>
> What about the dimming function?
> I try to use it but I don't succeed.
> I trace grop_render() in grop.c and it seems that none divnode have a grop->type
> including the PG_GROP_DIM flag.
>
> Do you have any tips?
>
> -philippe
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/pgui-devel
--
To the systems programmer, users and applications server only to provide a
test load.
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/pgui-devel