On Mon, 27 Feb 2006 12:08:26 +0200
"A.J. Venter" <[EMAIL PROTECTED]> wrote:
> On Monday 27 February 2006 11:40, Mattias Gaertner wrote:
> > On Mon, 27 Feb 2006 11:15:03 +0200
> >
> > "A.J. Venter" <[EMAIL PROTECTED]> wrote:
> > > On Monday 27 February 2006 10:47, Micha Nelissen wrote:
> > > > A.J. Venter wrote:
> > > > > Hi all,
> > > > > Probably the most requested feature for tappytux is that the entry
> > > > > line where users type answers needs to be bigger (I mean huge) and
> > > > > prettier, using something like Comic Sans font at size 32 should
> > > > > do it, but of course lazarus provides no means of setting fonts
> > > > > and gtkrc seems to only be able to do it globally - not for one
> > > > > widget type only.
> > > >
> > > > Are you sure gtk is really incapable of showing a different font for
> > > > certain widgets ? IIRC Darek implemented Color property for some
> > > > widgets, so I guess fonts should be possible as well. (But I have no
> > > > gtk experience).
> > > >
> > > > If this is possible, then this is *the* way to go.
> > >
> > > I spent about 4 hours last night reading gtkrc howto´s and studying
> > > existing theme files and thus far I cannot find anything to do this,
> > > even then it STILL requires an external gtkrc file, I think a
> > > component for those cases where you do need it would be very usefull,
> > > the same way a tstatictext can be used instead of a tlabel when you
> > > just need output.
> >
> > I just tried under linux/gtk1: Setting a TEdit font size to 30 gave a a
> > huge font.
> >
> Then this may be the right way, although I am using GTK2 here (I need the
> pango UTF support), and gtk_rc_parse will allow me to force a specific
> theme file.
> How exactly does your line look ?
As a TEdit with a big font.
> Any idea how I need ot change it to use GTK2 ? Or did you do this in code
> ?
I did it in the designer and it works at runtime with gtk1.
For gtk2:
This needs to be implemented in gtkobject.inc TGtkWidgetSet.SetWidgetFont.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives