hi,

this is working for me (for a label), maybe that helps:

   status = pgNewWidget(PG_WIDGET_LABEL,0,0);
   pgSetWidget(status,
         PG_WP_SIDE, PG_S_ALL,
         PG_WP_TRANSPARENT, 0,
         PG_WP_FONT, pgNewFont(NULL,17,PG_FSTYLE_DEFAULT),
         PG_WP_TEXT, pgNewString(""),
           PG_WP_ALIGN, PG_A_LEFT,
           PG_WP_BITMAPSIDE, PG_S_LEFT,
         0);

bye,
peter

Roland Seuhs wrote:

Hi!

I create a Textbox in PicoGUI 0.44 or 0.45 like this:


FeldX=pgNewWidget(PG_WIDGET_TEXTBOX, PG_DERIVE_INSIDE,Kopfteil); pgSetWidget(PGDEFAULT, PG_WP_SIDE,PG_S_TOP, PG_WP_SIZE,pgFraction(1,4), PG_WP_SIZEMODE,PG_SZMODE_CNTFRACT, PG_WP_TEXT,pgNewString(&(EditFeld[FeldEdit][0])), PG_WP_FONT, pgNewFont ("Helvetica",14, 0), 0);

and I get a "invalid widget property" errror.
Without the PG_WP_FONT property, I get no error, but in any case the font is much too 
small.

How do you change the fontsize for a textbox or if that's not possible, how do you change the default font?

Thanks a lot,

Roland







-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel

Reply via email to