Recent

Author Topic: New to Lazarus, questions on Widgets  (Read 5247 times)

BlackSun

  • Guest
New to Lazarus, questions on Widgets
« on: October 01, 2005, 05:05:36 pm »
Hello there,

I am a big Delphi fan, but a bit depleased with their .net orientation, lack of x64 and other OS support support, so I got really interested in FreePascal, and of course Lazarus.

I plan to write an app that run on Windows, Linux and MacOS at least, and was thinking about using GTK2 as a set of widget, it is supposed to run on the OS I'm interested in if I am not wrong.

My app is going to have skinning support, and I got GTK2 themes working using the libraries there: http://members.lycos.co.uk/alexv6/

Now my questions:
- I tried to look for the status of the current GTK2 development, but didn't find anything really new.

- I wrote a small test app, work fine except for two problems (my main question for this topic in fact): the form on runtime is created in another form container

(http://www.corecodec.org/~blacksun2/bordel/gtk2.png)

Now for the other problem, when the mouse is over the app window, it is using the gtk cursor (a black one), is there any way to prevent that ? Btw my app currently run on Win32, didn't test on another OS yet.

- How to set a GTK2 theme for an app ?

Many thanks for helping me
 :wink:

Anonymous

  • Guest
RE: New to Lazarus, questions on Widgets
« Reply #1 on: October 02, 2005, 07:59:44 pm »
I don´t know how to set a gtk2 theme, but you can go to this website: http://www.gtk.org/

On the documentation section of gtk website you may see the following links:

http://www.gtk.org/api/
http://www.gtk.org/tutorial/

To use gtk function simply include gtk in your uses clause.

But know that gtk2 is not absolutely problem-less yep. Thought it is close to getting ready, gtk1 applications are much more stable for now.

Anonymous

  • Guest
RE: New to Lazarus, questions on Widgets
« Reply #2 on: October 02, 2005, 08:03:19 pm »
Also remember that there is no need to link to gtk2 on windows. You can link to windows API with the exact same source code =)

Very nice, hum?

Just remember to use strip: "strip --strip-all <executable file>" and "upx <executable>"

This can make a 6MB executable go down to 700kb. I even got a 400kb graphical exe on Windows.

UPX has a incredibly small drawback on the executable load time.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2519
RE: New to Lazarus, questions on Widgets
« Reply #3 on: October 03, 2005, 02:41:48 pm »
The problem of the double windows you see is a win32 issue.
Win32 has no problems in having a form as child while on other widgetset it is a problem.
Don't use a borderless form as child in a form (asif it was a frame or a mdichild)
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018