Hi,

Am Dienstag, den 23.08.2005, 18:10 +0200 schrieb A.J. Venter:
> > > Right I'm gonna quit the flamewar (which is OT) and talk about this
> > > (which isn't). Actually I've done quite a bit to reduce the problem this
> > > is.
> >
> > if you want a per-application theme, call gtk_rc_parse('filenamerc'); at
> > the beginning.
> 
> Just let me see if I understand you right, I can create/find gtk theme file 
> that fitst my application best, have the package install it 
> into /usr/share/olad4 and have olad4 load it on startup with that call ?
> 
> I'm guessing this is a native GTK call, will it work with lazarus ?

yes, it is.
yes, it will work if you include/load gtk2.

simple test:

uses gtk2;

begin
  gtk_rc_parse('/usr/share/olad4/theme/gtkrc');
  ....
end.


> Where would I put the call ? In the .lpr ? 

yes, somewhere at the beginning.

> 
> That brings up an interesting thought though, I know windows also has a 
> similiar mechanism (don't remember what it's called but it's basically 
> creating a file in /windows with the same name as your app's main executable 
> but some additional extension add).

I forgot how they are called, I think manifest or something.

> So wouldn't one way for lazarus to obey programmer fonts etc. be to generate 
> such a file for the widget set being compiled to ? If it could be placed in 
> an LRS all the better. Of course this won't let you do a different font on 
> each button, but at least you could set a global font for buttons. 

yes, if someone implemented it :)

> The current widget.font properties appear to me to exist purely for delphi 
> compatibility and not do anything anyway, but adding a single style property 
> to the mainform shouldn't be undoable, and could even be done platform 
> indepdant I think with the right exporters.

add a method to the "Application" object, I'd say, if you mean what I
think you do (a method to load a theme for the app)

> 
> Just asking :)

well, sounds like a nice idea :)

> 
> A.J.

cheers,
   Danny

-- 
www.keyserver.net key id A334AEA6

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to