Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Graeme Geldenhuys
On Sun, Jan 11, 2009 at 5:52 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: What kind of graphics are supported? Pixel-based bitmaps do not fit well together with otherwise measured fonts and other GUI elements. It has nothing to do with what kind of graphics are supported. Layout

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Reenen Laurie
Yes, that demo of MiG looks truely awesome... The fact that you can write: hPanel.add(createTextField(), width 25%!); is awesome... I've always wanted to be able to express the size in terms of a % of the parent! Greame wrote: I am working on such a layout manager class though. I am porting the

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Position or size of components can be specified in any measuring unit and will keep the form looking correct irrespective of when it is resized, dpi is changed etc.. Looking correct and looking good are different things. Most designs, built with powerful layout

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Graeme Geldenhuys
On Mon, Jan 12, 2009 at 1:48 PM, Hans-Peter Diettrich drdiettri...@aol.com wrote: Looking correct and looking good are different things. Most designs, What I meant by correct, is that after a resize or dpi or resolution change, the form is still as you designed it. If you designed a bad looking

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Reenen Laurie
I can imagine you can mess up a form with MiG. But I think you'll have to try. http://www.migcalendar.com/miglayout/swingdemoapp.jnlp On Mon, Jan 12, 2009 at 2:29 PM, Graeme Geldenhuys graemeg.li...@gmail.comwrote: On Mon, Jan 12, 2009 at 1:48 PM, Hans-Peter Diettrich drdiettri...@aol.com

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: Looking correct and looking good are different things. Most designs, What I meant by correct, is that after a resize or dpi or resolution change, the form is still as you designed it. If you designed a bad looking form (that's your problem) it will look bad in all

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-12 Thread Pavel Řezníček
Hi all, I code also in wxPython and I use its sizers quite often. I think they are a great idea and they are what I almost always miss in the Pascal world. One advantage of the sizers is the cross-platformity of your layout. There are predefined sizes of every control for each platform,

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: My suggestion would be to create a layout class yourself. It should be easy. What's the base class for an layout manager? DoDi ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Felipe Monteiro de Carvalho
On Sun, Jan 11, 2009 at 9:57 AM, Hans-Peter Diettrich drdiettri...@aol.com wrote: What's the base class for an layout manager? There is none specific. I would suggest trying TCustomControl if you also want to draw borders or TControl if you just want to position childs. -- Felipe Monteiro de

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Graeme Geldenhuys
On 1/10/09, Lord Satan reimg...@web.de wrote: Did you ever do a 'more complex' GUI with Qt? I am working with Qt in my job and I would gladly trade Qt's layouts for Lazarus' anchoring and friends? It takes ages to align Qt's layouts and spacers in a way that they work at least a little bit

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread David W Noon
On Sun, 2009-01-11 at 03:52 +0100, Lord Satan wrote: On Sat, 10 Jan 2009 21:37:28 + David W Noon david.w.n...@ntlworld.com wrote: What you are ultimately saying is that Lazarus's form designer is easier to use than Qt designer. No, I am not. I am saying that with the Qt layouts we

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Hans-Peter Diettrich
Graeme Geldenhuys schrieb: You can even specify spacing between components in mm, inches, cm, pixels etc... It's resolution independent and dpi independent. What kind of graphics are supported? Pixel-based bitmaps do not fit well together with otherwise measured fonts and other GUI elements.

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Hans-Peter Diettrich
Felipe Monteiro de Carvalho schrieb: What's the base class for an layout manager? There is none specific. I would suggest trying TCustomControl if you also want to draw borders or TControl if you just want to position childs. That doesn't answer the question, how to marry controls and

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Mattias Gaertner
On Sun, 11 Jan 2009 16:49:10 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: Felipe Monteiro de Carvalho schrieb: What's the base class for an layout manager? There is none specific. I would suggest trying TCustomControl if you also want to draw borders or TControl if you just

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-11 Thread Hans-Peter Diettrich
Mattias Gaertner schrieb: That doesn't answer the question, how to marry controls and layout manager. How will the form designer interact with the layout manager... At the moment this is completely in the LCL. Controls can override various methods to alter that behavior and applications

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread Graeme Geldenhuys
On Wed, Jan 7, 2009 at 5:09 PM, David W Noon david.w.n...@ntlworld.com wrote: So, as the subject line says, does Lazarus have such classes? No, but it has anchoring, alignment etc... I am working on such a layout manager class though. I am porting the MiG Layout from Java to Free Pascal. It's

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread David W Noon
On Sat, 2009-01-10 at 10:01 +0200, Graeme Geldenhuys wrote: On Wed, Jan 7, 2009 at 5:09 PM, David W Noon david.w.n...@ntlworld.com wrote: So, as the subject line says, does Lazarus have such classes? No, but it has anchoring, alignment etc... This has proven to be completely adequate

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread Lord Satan
On Sat, 10 Jan 2009 19:49:43 + David W Noon david.w.n...@ntlworld.com wrote: If it's only half as good a Qt's layout classes it will be very good indeed. Did you ever do a 'more complex' GUI with Qt? I am working with Qt in my job and I would gladly trade Qt's layouts for Lazarus'

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread David W Noon
On Sat, 2009-01-10 at 22:05 +0100, Lord Satan wrote: On Sat, 10 Jan 2009 19:49:43 + David W Noon david.w.n...@ntlworld.com wrote: If it's only half as good a Qt's layout classes it will be very good indeed. Did you ever do a 'more complex' GUI with Qt? I am working with Qt in my job

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread Lord Satan
On Sat, 10 Jan 2009 22:05:43 +0100 Lord Satan reimg...@web.de wrote: Did you ever do a 'more complex' GUI with Qt? I am working with Qt in my job and I would gladly trade Qt's layouts for Lazarus' anchoring and friends? Of course, the question mark must be a period. As I have no doubt about

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-10 Thread Felipe Monteiro de Carvalho
My suggestion would be to create a layout class yourself. It should be easy. If it is good enougth it may be added to Lazarus later. -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org

[Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread David W Noon
Hi, Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them layouts. I have perused the LCL documentation and have found nothing that quite meets the bill. I tried a TPanel

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread Vincent Snijders
2009/1/7 David W Noon david.w.n...@ntlworld.com: Hi, Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them layouts. I have perused the LCL documentation and have found

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread Martin Friebe
Vincent Snijders wrote: 2009/1/7 David W Noon david.w.n...@ntlworld.com: Hi, Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them layouts. I have perused the LCL

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread David W Noon
On Wed, 2009-01-07 at 16:29 +0100, Vincent Snijders wrote: 2009/1/7 David W Noon david.w.n...@ntlworld.com: Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them

Re: [Lazarus] Does Lazarus have sizer or layout objects?

2009-01-07 Thread Hans-Peter Diettrich
Vincent Snijders schrieb: Some C++ class libraries have object classes that automatically resize widgets when a form is resized by the user. For example, wxWidgets calls them sizers, and Qt calls them layouts. I have perused the LCL documentation and have found nothing that quite meets the