On Tue, 08 May 2001, Olivier Bornet wrote:

> 
> Hello,
> 
> I'm trying to use pgText() with PGFX_IMMEDIATE mode. Two problems :
> 
> - the text is not display by default. I need to "paint" with my mouse,
>   or make a "refresh" (like close-open window).

Hmm. Shouldn't be doing that. Make sure you're calling pgContextUpdate() to have it 
update the screen. If you still have problems, let me know how I can reproduce them 
and I'll take a look.

> - no more possibility to change the font. (the last parameter was
>   suppressed).

Oh. There was supposed to be a pgSetFont primitive :)
Must have added it to the server but not PGFX.
I just added the missing pgSet* functions to the PGFX code in CVS. This includes 
pgSetFont, pgSetMapping, and pgSetLgop. pgSetLgop will do the XOR, AND, and OR 
operations you need (plus many others). pgSetMapping might be helpful for scaling a 
virtual coordinate system to whatever size the canvas is. For example, to scale a 
160x160 virtual screen to the canvas, call this before drawing:

pgSetMapping(context,0,0,160,160,PG_MAP_SCALE);

Note that the pgSet* functions are primitives too. ('nonvisual' primitives) so they go 
by the same rules. if you call it with an immediate context, it will have effect only 
until the screen is updated with the primitives in the buffer. If it is calles with a 
persistent context, it will always have effect. (Well, unless it is deleted)

> 
> PGFX_PERSISTENT mode don't have problem with the refresh. (but of course
> also don't have the font selection ;-) ).

Well, this should fix that too :)

> 
> Thanks in advance.
> 
>         Olivier
> -- 
> Olivier Bornet                      SMARTDATA SA
> [EMAIL PROTECTED]         Centre du Parc
> http://www.smartdata.ch             av. des Pr�s-Beudin 20
> Phone +41-27-723'55'03              1920 Martigny
> Fax   +41-27-723'55'19              Phone +41-27-723'55'18
> 
> _______________________________________________
> 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

Reply via email to