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] Saving user created component structure to LFM file

2009-01-12 Thread Thierry Coq
Dear Martin, In Delphi, I frequently used the mecanism you described, but I had to use the root WriteComponentRes procedure, not the WriteComponent one, which is only available for subcomponents. I did not use TCollection, which is capable of writing components (too complex for my usage). What

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] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
Thierry Coq wrote: Dear Martin, In Delphi, I frequently used the mecanism you described, but I had to use the root WriteComponentRes procedure, not the WriteComponent one, which is only available for subcomponents. I did not use TCollection, which is capable of writing components (too

[Lazarus] Audible alerts

2009-01-12 Thread Mark Morgan Lloyd
Is there a recommended/portable Lazarus/FPC function comparable with Windows' MessageBeep(), i.e. that provided a soundcard is available can make different noises depending on the alert type? Is there a recommended/portable way of sending MIDI to a sound card? -- Mark Morgan Lloyd markMLl

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Mattias Gaertner
On Mon, 12 Jan 2009 10:57:20 + Martin Friebe laza...@mfriebe.de wrote: [...] Thanks, I think I found a better way. The outer container has no nested components of it's own. It seems I can hook into (override) TComponent.WriteState which is calling WriteComponentData (properties, then

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] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
Mattias Gaertner wrote: [...] Thanks, I think I found a better way. The outer container has no nested components of it's own. It seems I can hook into (override) TComponent.WriteState which is calling WriteComponentData (properties, then Children). Since no children are there, I can make

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] Saving user created component structure to LFM file

2009-01-12 Thread Leonardo M. Ramé
In Delphi you have to explicitly set the subcomponent: Example: constructor TMyComponent.create begin ... FSubComponent := TSubComponent.Create(Self); ... FSubComponent.SetSubComponent(True); ... end; Leonardo M. Ramé Griensu S.A. - Medical IT Córdoba Tel.: 0351 - 4247979

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
Leonardo M. Ramé wrote: In Delphi you have to explicitly set the subcomponent: Example: constructor TMyComponent.create begin ... FSubComponent := TSubComponent.Create(Self); ... FSubComponent.SetSubComponent(True); ... end; Same here, just yopu can modify the flag

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Martin Friebe
So as I see it I found 2 possibilities 1) The GutterParts are created as components owned by the SynEdit (or does it have to be the form; if it does have to be the form then there will be issues if there is more than one synedit ). that will be a lot of easy to break maintenance work.

Re: [Lazarus] Saving user created component structure to LFM file

2009-01-12 Thread Leonardo M. Ramé
Is the subcomponent declared as a published property of its owner?. Maybe that's why the streaming system can't view it. Leonardo M. Ramé Griensu S.A. - Medical IT Córdoba Tel.: 0351 - 4247979 Martin Friebe escribió: Leonardo M. Ramé wrote: In Delphi you have to explicitly set the

[Lazarus] Re: OSX: Handles and WindowRefs

2009-01-12 Thread Duncan Parsons
thx for the replies gentlemen :-) I'll give a little background... various plugin APIs allow for a custom UI to be shown by the host application, and to do so provide a system reference point (HWND on Windows, WindowRef on Darwin, can't speak for *nix). To implement this, CreateParented needs to

Re: [Lazarus] Commercial components for Lazarus

2009-01-12 Thread Matt Henley
Where could I find information on VST under Lazarus or FPC? On Wed, Oct 29, 2008 at 8:33 AM, Marco van de Voort mar...@stack.nl wrote: Nowadays I hardly buy components. I use cport, indy9, VST and one routine from dmath/fpmath and that is about it.

Re: [Lazarus] Commercial components for Lazarus

2009-01-12 Thread Duncan Parsons
Ah - just looked at the context of your post - do you mean audio plugin, or Virtual String Trees? if the former, see my previous post; if the latter, see http://lazarusroad.blogspot.com/2008/10/status-of-virtual-treeview-port. html :-) ATB, DSP Matt Henley wrote: Where could I find

[Lazarus] Re: Commercial components for Lazarus

2009-01-12 Thread Duncan Parsons
Hi Matt Christian Budde set up DelphiAsioVST (http://sourceforge.net/projects/delphiasiovst/) to help with VST development in Object Pascal. It has alot of classes which you can use, or you can just use Frederick Vanmol's translation of the SDK, and implement everything yourself. Over the last

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,

[Lazarus] TDateEdit

2009-01-12 Thread Darmawan Sugiarto
I Add some code at TDateEdit   TDateEdit = class(TCustomEditButton)   private     FDefaultToday: Boolean;     FDialogTitle: TCaption;     FDisplaySettings: TDisplaySettings;     FOnAcceptDate: TAcceptDateEvent;     FOnCustomDate: TCustomDateEvent;     FOKCaption: TCaption;     FCancelCaption: