Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 19:59:02 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Monday 27 February 2006 18:51, Mattias Gaertner wrote: > >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); > >   gtk_widget_modify_font(AWidget,font_desc); > >   pango_font_description_free(font_

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 18:51, Mattias Gaertner wrote: >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); >   gtk_widget_modify_font(AWidget,font_desc); >   pango_font_description_free(font_desc);           Right my patch is ALL BUT complete, one thing is missing though, T

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
On Monday 27 February 2006 18:51, Mattias Gaertner wrote: >   font_desc:=pango_font_description_from_string(PChar(PangoDescStr)); >   gtk_widget_modify_font(AWidget,font_desc); >   pango_font_description_free(font_desc);               > > Works. Thanks, that gives me enough of a base to start clon

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:47:56 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > Correct. > > There must be already such a function, but I'm not sure if it works > > good. There are a lot of font issues in the gtk2 interface. > Well if it's there, it's not there under the same name :) > > > > >

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > try > > NewFontDescription := PPangoFontDescription(PangoDescStr); > > AWidget.Modify_Font(NewFontDescription); > > I will take a look ... > Mucios Gracias Amigo. A.J. -- A.J. Venter Chief Software Architect OpenLab International www.getopenlab.com www.silentcoder.co.za +27

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:28:04 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > > > > > If this is possible, then this is *the* way to go. > > > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > > one of my (C++, unfortunately) programs. The documentation seems to tal

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> Correct. > There must be already such a function, but I'm not sure if it works good. > There are a lot of font issues in the gtk2 interface. Well if it's there, it's not there under the same name :) > > > So the RIGHT way I believe is to enable the method, presumably by > > descending PGTKWidge

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 18:28:04 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > > > > > > > If this is possible, then this is *the* way to go. > > > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > > one of my (C++, unfortunately) programs. The documentation seems to tal

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
On Mon, 27 Feb 2006 16:42:06 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > Well I did some research and the GTK way of doing it is really very > simple, except that the method (modify_font) doesn´t seem to exist in > PGTKWidget which I surmise is because the definition of THAT is taken > from

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > > > If this is possible, then this is *the* way to go. > > At least I know it is possible for gtk2 - I implemented dynamic fonts in > one of my (C++, unfortunately) programs. The documentation seems to talk > about the font code as something New and Improved (tm), so I'd say it's > quite hard

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Christian Iversen
On Monday 27 February 2006 09: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

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
Well I did some research and the GTK way of doing it is really very simple, except that the method (modify_font) doesn´t seem to exist in PGTKWidget which I surmise is because the definition of THAT is taken from the GTK1 definition. According to the GTK2 docs, all GTK2 widgets derive from GTKWi

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> I assume it´s specified somewhere else ? Presumably the same place where > the debugln for setWidgetFont comes from. > Sorry, I just realized my copy here at the office is about a week old, did an update and found all the GTK declarations, now to study how GTK2 sets fonts in C and basically tr

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
> > > 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. > I am studying that file now, thinking off it, my way woul

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
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.

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
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 i

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Mattias Gaertner
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

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread A.J. Venter
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

Re: [lazarus] Pretty looking TEdit

2006-02-27 Thread Micha Nelissen
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