Re: [Lazarus] When does ComponentPageControl gets filled?
On Thu, Mar 6, 2014 at 3:23 AM, leledumbo wrote: > I've just installed Lazarus 1.2 and I realize that KZDesktop's way of > embedding component palette no longer works as it was in 1.0.14. It looks > like KZDesktop has overriden the event when ComponentPageControl gets > filled. Do I need to call something to make it filled? Or perhaps an easier > one, what are the differences between 1.0.14 an 1.2's way of filling > component paletter? You mean the compilation error? Just change 'Items' for 'Comps'. And to fix the painting problem in the designer, change the 'UpdateControlState' call to 'AdjustSize'. Otherwise I'm not getting any (new) problem. Best regards, Flávio -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] When does ComponentPageControl gets filled?
I've just installed Lazarus 1.2 and I realize that KZDesktop's way of embedding component palette no longer works as it was in 1.0.14. It looks like KZDesktop has overriden the event when ComponentPageControl gets filled. Do I need to call something to make it filled? Or perhaps an easier one, what are the differences between 1.0.14 an 1.2's way of filling component paletter? -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/When-does-ComponentPageControl-gets-filled-tp4036110.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
On http://www.lazarus.freepascal.org/index.php?page=downloads "Lazarus Snapshots Mirror" --> link to "http://www.hu.freepascal.org/lazarus/"; That link not found -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] [fpc-devel] Lazarus 1.2 Release
On 04/03/2014 14:52, Mattias Gaertner wrote: The Lazarus team is glad to announce the release of Lazarus 1.2. We are news worthy (german): http://www.heise.de/open/meldung/Lazarus-IDE-fuer-Pascal-und-Object-Pascal-in-Version-1-2-veroeffentlicht-2134703.html?wt_mc=rss.open.beitrag.rdf -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Download Lazarus-1.3 snapshots for 64 Bit
Hello, Where can I download Lazarus-1.3 snapshots for 64 bit? Thank you Edson -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] IDE default font
Antonio Fortuny schrieb: Hi Folks. If I remember well, a discussion took place some weeks ago about the IDE fonts in Lazarus but I can't find it any more So there is my question: Is it possible to change the default font used by visual controls when they are dropped onto the form ? When you set the form's Font as desired, set ParentFont=True in all dropped components. Isn't this setting the default? DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
Am 05.03.2014 16:46, schrieb Juha Manninen: On Wed, Mar 5, 2014 at 12:38 PM, Sven Barth wrote: A little confusion regarding Windows 64-bit: The main page www.lazarus.freepascal.org detects my system rightfully as Windows 64, but diverts the download to the 32-Bit IDE. I don't think it is a big problem because 32-bit works well for most people. A bigger confusion would come from SEH related bug reports from people who just clicked the download button without knowing about the issue. SEH shouldn't be an issue. Afterall you present the users the 32-bit download and there exceptions aren't that problem they were on 64-bit which is why SEH was implemented there first. I can look at the PHP code next weekend if it needs changes (unless somebody does it before that). As I said my problem is not necessarily that you present users the 32-bit download, but that you show them that Windows 64-bit was detected and then people might be surprised that they can't generate 64-bit applications without downloading the addon installer. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] constructor Create How is it work?
FreeMan schrieb: DoDi Thank you very much, You explain much better then me :) Main problem constructor not finished construction, I mean how to handle Self(TExLookUp) construction is finished? I have to wait, when self(TExLookUp) has created, and load self's properties loaded from, form resources (from .lfm) , then I can to use TExLookUp's properties, for child control, or some one else I need similar a "TExLookUp.creatED" event, so I can now, class created and ready for use. Right. Perhaps Loaded() is what we are looking for. Override it in your component and add the creation of the other control to it. @DoDi: "TExLookUp.OnCreate handler" how to add this? if add it my self, where to triggered or its just example Add you handler to the component, and in the constructor install it: OnCreate := @MyOnCreateHandler; "AFAIK" what mean this word? english is not mine language, I'm using dictionary while writeing message. As Far As I Know DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Digest, Vol 74, Issue 14
On Wed, 5 Mar 2014 11:23:01 - "JIMB" wrote: > Can you tell me how to ask questions on this forum. > > I have made several attempts but never see any response What have you asked? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
On Wed, Mar 5, 2014 at 12:38 PM, Sven Barth wrote: > A little confusion regarding Windows 64-bit: The main page > www.lazarus.freepascal.org detects my system rightfully as Windows 64, but > diverts the download to the 32-Bit IDE. I don't think it is a big problem because 32-bit works well for most people. A bigger confusion would come from SEH related bug reports from people who just clicked the download button without knowing about the issue. I can look at the PHP code next weekend if it needs changes (unless somebody does it before that). Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] What GetChildParent does in designer and reader?
But I'll keep trying to implement this. Em 04/03/2014 21:34, "Fabio Luis Girardi" escreveu: > I'll try this approach. At the moment this is a good workaround... :) > Em 04/03/2014 21:22, "luiz americo pereira camara" > escreveu: > >> Hi Fabio, >> >> I'd like to share how i implemented similar behavior of TDbCtrlGrid, so >> maybe you can be interested. If not just ignore. >> >> First i create a TFrame in Lazarus put the controls that i need to be >> there. >> >> In the control i want to display the instances of the frame i create at >> runtime according to a configuration >> >> This way i have the easy of use of Lazarus designer with a lot of >> flexibility. >> >> I created an control ( >> https://code.google.com/p/luipack/source/browse/trunk/luicontrols/jsonmediators.pas) >> that does the above. The frame class (TJSONBooleanRadioButtonViewFrame) >> is hardcoded but it can be decoupled by using an interface. >> >> To implement TDbCtrlGrid like control with this approach seems easier >> then you are trying: >> >> - Define an interface with what you need to configure the DbCtrls like >> IDbCtrlItem = interface >> SetDatasource(Datasource: TDataSource); >> end; >> - Create a control that has a TFrameClass property >> - When the TFrameClass is set, check if implements IDbCtrlItem >> - At runtime create as many TFrameClass instances as needed configuring >> them at initialization through the IDbCtrlItem interface >> - Bind to dataset events and update the controls accordingly >> >> Luiz >> >> >> 2014-03-04 10:41 GMT-03:00 Fabio Luis Girardi : >> >>> Hi Mattias!! >>> >>> This solution don't work too. >>> >>> >>> 2014-03-04 9:46 GMT-03:00 Fabio Luis Girardi : >>> >>> Maybe RemoveHandlerAddClicked is a replacement? 2014-03-04 9:43 GMT-03:00 Fabio Luis Girardi : mytesthelper.pas(40,20) Error: identifier idents no member > "RemoveHandlerComponentAdded" > > Lazarus 1.3 > > > > 2014-03-03 18:56 GMT-03:00 Mattias Gaertner >: > > On Mon, 3 Mar 2014 16:47:30 -0300 >> Fabio Luis Girardi wrote: >> >> > Hi!! >> > >> > Attached the code of my prototype of TDBCtrlGrid. It works as >> expected on >> > Delphi (except the function GetDesignerDropTarget that don't exists >> on >> > Delphi TWinControl), but it don't works as expected on Lazarus. >> >> On second thought the LCL method is not very flexible. >> I added a general designer event. >> >> See >> >> http://wiki.lazarus.freepascal.org/Extending_the_IDE#Example:_When_dropping_a_new_component_move_control_to_a_child >> >> Please test. >> >> Mattias >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> > > > > -- > The best regards, > > Fabio Luis Girardi > PascalSCADA Project > http://sourceforge.net/projects/pascalscada > http://www.pascalscada.com > -- The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com >>> >>> >>> >>> -- >>> The best regards, >>> >>> Fabio Luis Girardi >>> PascalSCADA Project >>> http://sourceforge.net/projects/pascalscada >>> http://www.pascalscada.com >>> >>> -- >>> ___ >>> Lazarus mailing list >>> Lazarus@lists.lazarus.freepascal.org >>> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >>> >>> >> >> -- >> ___ >> Lazarus mailing list >> Lazarus@lists.lazarus.freepascal.org >> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus >> >> -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] constructor Create How is it work?
Yes, One moretime, all woit goes to Mattias, :) I'm still not useto lazarus style code structure. Ancestor component, trigger when finish initialization self, this mean (for me) I have to sparate my code. in constructor TExLookUp.Create; FGrid := TRxDBGrid.Create(Self); FGrid.Visible:= False; FGrid.DataSource := FListField.DataSource; . set FGrid.xxx properies, not get parent's (TExLookUp) properties. TExLookUp.Left, TExLookUp.Top etc procedure TExLookUp.Loaded; begin inherited Loaded; // Now TExLookUp.xx is ready for getting properties FGrid.Left := Self.Left; FGrid.Top := Self.BoundsRect.Bottom-2; FGrid.Width := Self.BoundsRect.Right - Self.BoundsRect.Left + Self.ButtonWidth; FGrid.Parent := Self.Parent; end; I did, I tested, and thats okey now. Thank you, 05-03-2014 14:12 tarihinde, Mattias Gaertner yazdı: [...] I have to wait, when self(TExLookUp) has created, and load self's properties loaded from, Override method Loaded. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] constructor Create How is it work?
On Wed, 05 Mar 2014 13:35:20 +0200 FreeMan wrote: >[...] > I have to wait, when > self(TExLookUp) has created, and load self's properties loaded from, Override method Loaded. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] constructor Create How is it work?
DoDi Thank you very much, You explain much better then me :) Main problem constructor not finished construction, I mean how to handle Self(TExLookUp) construction is finished? I have to wait, when self(TExLookUp) has created, and load self's properties loaded from, form resources (from .lfm) , then I can to use TExLookUp's properties, for child control, or some one else I need similar a "TExLookUp.creatED" event, so I can now, class created and ready for use. This is not importend just my this component, other example, was write previous message: TxItem = class(TCollectionItem) FName : string; property Name : string read Fname write Fname; constructor Tx.Create(Collection: TCollection); begin inherited Create(Collection); . FName := 'XItem' + IntToStr(Index); --> FName is Item's name, TCollection.Index is always 0(zero). Collection added, so it has a index number from TCollectionItem, but TCollection not known this. I need unique FName, and "Index" property. I can get index if TCollection.CreatED; @DoDi: "TExLookUp.OnCreate handler" how to add this? if add it my self, where to triggered or its just example "AFAIK" what mean this word? english is not mine language, I'm using dictionary while writeing message. Thank you I hope I can translate my problem about create method 05-03-2014 08:29 tarihinde, Hans-Peter Diettrich yazdı: FreeMan schrieb: constructor TExLookUp.Create(AOwner: TComponent); begin inherited Create(AOwner); Self.OnChange := @EditChange; set more Self properties here! FGrid := TRxDBGrid.Create(Self); FGrid.Parent := Self.Parent; FGrid.Left := Self.Left; FGrid.Top := Self.Heigh + 10; FGrid.Width := 150; FGrid.visible := False; ... Please remember that you are in the TExLooUp constructor. Finish initialization of this component, before assigning Self.whatever to the FGrid. When the TExtLookUp is initialized from the form resource, you have to wait until this has been done. In this case I'd move the FGrid related part into the TExLookUp.OnCreate handler, which AFAIK is called *after* the TExtLookUp has been created and fully initialized. Or put the code into ExtLookUp.SetParent, as Mattias suggests. But this solution depends on the order, how the TExtLookUp properties are initialized from the form resource. When Parent is set before Left, Height etc., this solution doesn't work either. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Digest, Vol 74, Issue 14
Can you tell me how to ask questions on this forum. I have made several attempts but never see any response Best wishes, Jim -Original Message- From: lazarus-requ...@lists.lazarus.freepascal.org [mailto:lazarus-requ...@lists.lazarus.freepascal.org] Sent: 05 March 2014 11:00 To: lazarus@lists.lazarus.freepascal.org Subject: Lazarus Digest, Vol 74, Issue 14 Send Lazarus mailing list submissions to lazarus@lists.lazarus.freepascal.org To subscribe or unsubscribe via the World Wide Web, visit http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus or, via email, send a message with subject or body 'help' to lazarus-requ...@lists.lazarus.freepascal.org You can reach the person managing the list at lazarus-ow...@lists.lazarus.freepascal.org When replying, please edit your Subject line so it is more specific than "Re: Contents of Lazarus digest..." Today's Topics: 1. Re: constructor Create How is it work? (Hans-Peter Diettrich) 2. IDE default font (Antonio Fortuny) 3. Re: Lazarus 1.2 Release (Sven Barth) -- Message: 1 Date: Wed, 05 Mar 2014 07:29:21 +0100 From: Hans-Peter Diettrich Subject: Re: [Lazarus] constructor Create How is it work? To: Lazarus mailing list Message-ID: <5316c441.4070...@aol.com> Content-Type: text/plain; charset=UTF-8; format=flowed FreeMan schrieb: > ExLookUp1:=TExLookUp.Create(Form1); This is for manual creating, I'm > talk about, I'm designing in IDE, 1-2 TExLookUp on form, and run my > application, TExLookUp is class(TCustomEditButton) so Edit and button is > shown on where I put on form, in designtime IDE. > > constructor TExLookUp.Create(AOwner: TComponent); > begin inherited Create(AOwner); > Self.OnChange := @EditChange; set more Self properties here! > FGrid := TRxDBGrid.Create(Self); > FGrid.Parent := Self.Parent; > FGrid.Left := Self.Left; > FGrid.Top := Self.Heigh + 10; > FGrid.Width := 150; > FGrid.visible := False; > ... Please remember that you are in the TExLooUp constructor. Finish initialization of this component, before assigning Self.whatever to the FGrid. When the TExtLookUp is initialized from the form resource, you have to wait until this has been done. In this case I'd move the FGrid related part into the TExLookUp.OnCreate handler, which AFAIK is called *after* the TExtLookUp has been created and fully initialized. Or put the code into ExtLookUp.SetParent, as Mattias suggests. But this solution depends on the order, how the TExtLookUp properties are initialized from the form resource. When Parent is set before Left, Height etc., this solution doesn't work either. DoDi -- Message: 2 Date: Wed, 05 Mar 2014 11:22:19 +0100 From: Antonio Fortuny Subject: [Lazarus] IDE default font To: lazarus@lists.lazarus.freepascal.org Message-ID: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Hi Folks. If I remember well, a discussion took place some weeks ago about the IDE fonts in Lazarus but I can't find it any more So there is my question: Is it possible to change the default font used by visual controls when they are dropped onto the form ? If answer is yes, how could I change it ? My quesion is not trivial as I develop simultaneously in Win32 and Linux, most of the time, for the same projects (win32/64, GTK for Linux). First steps on Win32, then port to Linux. Afterwards, development and tests go on in parallel. Thanks, Antonio. --- Ce courrier ?lectronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -- Message: 3 Date: Wed, 05 Mar 2014 11:38:48 +0100 From: Sven Barth Subject: Re: [Lazarus] Lazarus 1.2 Release To: lazarus@lists.lazarus.freepascal.org Message-ID: <5316feb8.5050...@googlemail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Am 04.03.2014 15:52, schrieb Mattias Gaertner: > The Lazarus team is glad to announce the release of Lazarus 1.2. A little confusion regarding Windows 64-bit: The main page www.lazarus.freepascal.org detects my system rightfully as Windows 64, but diverts the download to the 32-Bit IDE. *I* may know why it's doing this and I've also read the readme in the Win64 folder on SourceForge, but it might nevertheless be confusing for new users that might want to develop x64 applications as nowhere on the main page is mentioned that one will need the x64 addon installer. Regards, Sven -- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus End of Lazarus Digest, Vol 74, Issue 14 *** -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazar
Re: [Lazarus] Lazarus 1.2 Release
Am 04.03.2014 15:52, schrieb Mattias Gaertner: The Lazarus team is glad to announce the release of Lazarus 1.2. A little confusion regarding Windows 64-bit: The main page www.lazarus.freepascal.org detects my system rightfully as Windows 64, but diverts the download to the 32-Bit IDE. *I* may know why it's doing this and I've also read the readme in the Win64 folder on SourceForge, but it might nevertheless be confusing for new users that might want to develop x64 applications as nowhere on the main page is mentioned that one will need the x64 addon installer. Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] IDE default font
Hi Folks. If I remember well, a discussion took place some weeks ago about the IDE fonts in Lazarus but I can't find it any more So there is my question: Is it possible to change the default font used by visual controls when they are dropped onto the form ? If answer is yes, how could I change it ? My quesion is not trivial as I develop simultaneously in Win32 and Linux, most of the time, for the same projects (win32/64, GTK for Linux). First steps on Win32, then port to Linux. Afterwards, development and tests go on in parallel. Thanks, Antonio. --- Ce courrier électronique ne contient aucun virus ou logiciel malveillant parce que la protection avast! Antivirus est active. http://www.avast.com -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus