Re: [Lazarus] Overloading with generic type as parmeter causes compiler error.

2012-05-01 Thread Donald R. Ziesig
Hi Sven! According to Lazarus (0.9.30.4) Help|About, fpc is version 2.6.0. I will try with a recent trunk version (if I can figure out how to do it :-[ ) and let you know the results. Thanks, Don Z. On 5/1/2012 5:21 AM, Sven Barth wrote: On 30.04.2012 17:45, Donald R. Ziesig wrote: Hi Al

Re: [Lazarus] Frames from packages can now be put on forms

2012-05-01 Thread Marcos Douglas
On Tue, May 1, 2012 at 11:55 AM, Mattias Gaertner wrote: > Hi all, > > You can now put frames from packages on forms. > > Formerly you had to do it manually by editing the pas and lfm file. Now > the dialog to select the frame ancestor shows all available frames from > all used packages. > > Matti

[Lazarus] Frames from packages can now be put on forms

2012-05-01 Thread Mattias Gaertner
Hi all, You can now put frames from packages on forms. Formerly you had to do it manually by editing the pas and lfm file. Now the dialog to select the frame ancestor shows all available frames from all used packages. Mattias -- ___ Lazarus mailing li

Re: [Lazarus] Form in DLL

2012-05-01 Thread Bernd
2012/5/1 Hans-Peter Diettrich : > This sounds a bit weird. Or is the DLL *assumed* to synchronize all these > calls with the GUI thread (be application or DLL main thread)? No, I didn't expect the LCL to do this, this was just the last straw that made me stop these experiments, when I discovered

Re: [Lazarus] Return of Frame3D issue

2012-05-01 Thread Juha Manninen
On Tue, May 1, 2012 at 3:14 PM, patspiper wrote: > I think he wants to use > LCLIntf.Frame3d(DC: HDC; var ARect: TRect; const FrameWidth : integer; > const Style : TGraphicsBevelCut): Boolean > > In that case, he must add LCLIntf to his uses clause. > Yes, LCLIntf must be added to uses clause b

Re: [Lazarus] Return of Frame3D issue

2012-05-01 Thread patspiper
On 01/05/12 15:43, Frank Church wrote: On 1 May 2012 13:14, patspiper > wrote: On 01/05/12 14:56, Juha Manninen wrote: On Mon, Apr 30, 2012 at 11:15 PM, Frank Church mailto:vfcli...@gmail.com>> wrote: In 0.9.30 it is defined in lclintf.h as

Re: [Lazarus] Return of Frame3D issue

2012-05-01 Thread Frank Church
On 1 May 2012 13:14, patspiper wrote: > On 01/05/12 14:56, Juha Manninen wrote: > > On Mon, Apr 30, 2012 at 11:15 PM, Frank Church wrote: > >> In 0.9.30 it is defined in lclintf.h as >> >> function Frame3d(DC: HDC; var ARect: TRect; const FrameWidth : integer; >> const Style : TGraphicsBevelCut

Re: [Lazarus] Form in DLL

2012-05-01 Thread Hans-Peter Diettrich
Bernd schrieb: I ended up starting a separate thread in my dll, told the RTL that this new thread is now the main thread (and was surprised that this actually worked) and then wrote my own message loop (because application.run did not seem to work properly). Up to here I'd think that a new TAp

Re: [Lazarus] Return of Frame3D issue

2012-05-01 Thread patspiper
On 01/05/12 14:56, Juha Manninen wrote: On Mon, Apr 30, 2012 at 11:15 PM, Frank Church > wrote: In 0.9.30 it is defined in lclintf.h as function Frame3d(DC: HDC; var ARect: TRect; const FrameWidth : integer; const Style : TGraphicsBevelCut): Boolean; {$IFD

Re: [Lazarus] Return of Frame3D issue

2012-05-01 Thread Juha Manninen
On Mon, Apr 30, 2012 at 11:15 PM, Frank Church wrote: > In 0.9.30 it is defined in lclintf.h as > > function Frame3d(DC: HDC; var ARect: TRect; const FrameWidth : integer; > const Style : TGraphicsBevelCut): Boolean; {$IFDEF > IF_BASE_MEMBER}virtual;{$ENDIF} and is also in the Graphics unit as >

Re: [Lazarus] Removing read-only files in FileUtil.DeleteDirectory ?

2012-05-01 Thread Bart
On 4/30/12, Jürgen Hestermann wrote: > > One might also consider retuning the actual filename/foldername that > > could not be removed if things fail, so feedback to the user can be > > given. > > This would only make sense if a programmer wants to present the file name > to a user. But if the

Re: [Lazarus] Overloading with generic type as parmeter causes compiler error.

2012-05-01 Thread Sven Barth
On 30.04.2012 17:45, Donald R. Ziesig wrote: Hi All! I am working on a generic type library and ran into a problem at compile time. type generic TMyType = class * * * function IndexOf( Item : T ) : Integer; overload; functionIndexOf( aName : String) : Integer; overload; // generics1.pas Error: