[Lazarus] [No subject]
-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] [No subject]
-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Checking characters in a string
On 03/12/2014 07:08 PM, silvioprog wrote: It is not hard to allow chars like ã, Ã, ñ, Ñ, ç, Ç, ä, Ä etc. I left the function a little faster too: These beasts in UTF-8 are not char s (but multi-Byte codes) so your example code c: char ... will not work :-( . -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] [No subject]
-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus 1.2 Win64 IDE crashes when opening file dialog box
My config is Win 8.1 64bits, Starting lazarus will open my default project, but as soon as I try to open another project through the field dialog box (File | Open), the open file dialog box opens, it crashes the IDE after few seconds, I have seen this http://bugs.freepascal.org/view.php?id=25067 and few others related bugs as being closed, so maybe someone found a workaround ? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Win64 IDE crashes when opening file dialog box
On 13/03/2014 10:36, Jy V wrote: it crashes the IDE after few seconds, I have seen this http://bugs.freepascal.org/view.php?id=25067 and few others related bugs as being closed, so maybe someone found a workaround ? Yes; as you can see in the last comments in that bug report, the workaround is to use FPC trunk which has SEH support and fixes the problem. The SEH changes won't be backported to 2.6.x though as they are too big/invasive. A perhaps easier workaround is to install the 32 bit IDE, then install the 32=64 bit cross compiler installer. This way, you can still build 64 bit applications if needed (note: which, however, will have the same exception handling problems as the 64 bit IDE). See also: - the Lazarus 1.2 announcements that have a warning about this and refer to - http://wiki.lazarus.freepascal.org/Windows_Programming_Tips#FPC_2.6.x.2FLazarus_warning_.28Missing_support_for_SEH.29 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Any active plans to release Lazarus with FPC 2.6.4
Hello, I've been wondering very long that FPC has not updated in the Lazarus. But now that new version is out, what is the plan to release lazarus version with it? -Tee- PS. Someone could start to Blog and/or Tweet on the project and it's progress. I think that also would lure in more participants. Anyone that have enough information, and others could feed more ;) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Win64 IDE crashes when opening file dialog box
Thank you Reinier, your explanations are clear. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Checking characters in a string
On 13/03/14 09:29, Michael Schnell wrote: On 03/12/2014 07:08 PM, silvioprog wrote: It is not hard to allow chars like ã, Ã, ñ, Ñ, ç, Ç, ä, Ä etc. I left the function a little faster too: These beasts in UTF-8 are not char s (but multi-Byte codes) so your example code c: char ... will not work :-( . -Michael He converts to PChar, then checks byte values, not characters. (see the second message where he rectifies it a bit). -L. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Modifying Form Event
Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). But the form closes anyway. procedure MyFormCloseQuery(Sender: TObject; var CanClose: boolean); begin ShowMessage('MyCloseQuery:'+TControl(Sender).Name); CanClose := FALSE; end; procedure TformMain.Button1Click(Sender: TObject); var OnCloseQueryMethod:TCloseQueryEvent; begin TMethod(OnCloseQueryMethod).Code := @MyFormCloseQuery; TMethod(OnCloseQueryMethod).Data := formMain; TForm(formMain).OnCloseQuery := OnCloseQueryMethod; end; Thanks - SteveG -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
On Thu, 13 Mar 2014 22:45:44 +1030 Steve Gatenby ste...@nevets.com.au wrote: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). But the form closes anyway. procedure MyFormCloseQuery(Sender: TObject; var CanClose: boolean); Methods have a hidden Self parameter: procedure MyFormCloseQuery(Self: TObject; Sender: TObject; var CanClose: boolean); Keep in mind that this is an implementation detail of the compiler, which may be different on other platforms, may not work with special compiler flags and may change in future. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
On Thu, 13 Mar 2014 12:25:15 +0200 Tommi Prami tommi.pr...@gmail.com wrote: Hello, I've been wondering very long that FPC has not updated in the Lazarus. But now that new version is out, what is the plan to release lazarus version with it? Probably the next release 1.2.2 will use fpc 2.6.4. Both are bug fix releases, so they play nice together. -Tee- PS. Someone could start to Blog and/or Tweet on the project and it's progress. I think that also would lure in more participants. Anyone that have enough information, and others could feed more ;) There are some articles here: http://lazarus-dev.blogspot.de/ 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, 05 Mar 2014 19:28:46 +0200 FreeMan freema...@delphiturkiye.com wrote: 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 Link is up again, but snapshots are still outdated. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
Steve Gatenby schrieb: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). But the form closes anyway. procedure MyFormCloseQuery(Sender: TObject; var CanClose: boolean); begin ShowMessage('MyCloseQuery:'+TControl(Sender).Name); CanClose := FALSE; end; procedure TformMain.Button1Click(Sender: TObject); var OnCloseQueryMethod:TCloseQueryEvent; begin TMethod(OnCloseQueryMethod).Code := @MyFormCloseQuery; TMethod(OnCloseQueryMethod).Data := formMain; TForm(formMain).OnCloseQuery := OnCloseQueryMethod; end; Here formMain.OnCloseQuery := @MyFormCloseQuery should be sufficient, unless the OnCloseQuery handler deals with data in the form. But in this case the handler should be made part of the formMain code, so that it can access the form's fields and methods. When your formMain closes anyway, I'd suggest to write an OnClose handler and set CloseAction to caNone there. AFAIR OnCloseQuery is intended for ending an application, where the application denies ending when any form reports CanClose=False. Closing individual forms instead should be handled in OnClose. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
Mattias Gaertner schrieb: On Thu, 13 Mar 2014 22:45:44 +1030 Steve Gatenby ste...@nevets.com.au wrote: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). But the form closes anyway. procedure MyFormCloseQuery(Sender: TObject; var CanClose: boolean); Methods have a hidden Self parameter: procedure MyFormCloseQuery(Self: TObject; Sender: TObject; var CanClose: boolean); Ah, I missed *that* essential detail in my answer :-( Thanks DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
On Thu, 13 Mar 2014 13:51:48 +0100 Hans-Peter Diettrich drdiettri...@aol.com wrote: [...] Here formMain.OnCloseQuery := @MyFormCloseQuery should be sufficient, Compiler will refuse that. [...] When your formMain closes anyway, I'd suggest to write an OnClose handler and set CloseAction to caNone there. AFAIR OnCloseQuery is intended for ending an application, where the application denies ending when any form reports CanClose=False. Closing individual forms instead should be handled in OnClose. OnCloseQuery defines if to close or not, OnClose defines how to close. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
2014-03-13 9:48 GMT-03:00 Mattias Gaertner nc-gaert...@netcologne.de: [...] Link is up again, but snapshots are still outdated. It will updated? -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
On 13/03/2014 13:23, silvioprog wrote: 2014-03-13 9:48 GMT-03:00 Mattias Gaertner nc-gaert...@netcologne.de mailto:nc-gaert...@netcologne.de: [...] Link is up again, but snapshots are still outdated. It will updated? Not in the short term: http://forum.lazarus.freepascal.org/index.php/topic,23823.msg143296.html#msg143296 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
Any issues using 2.6.4 to build the svn version? Thanks, Dave. On 03/13/2014 08:46 AM, Mattias Gaertner wrote: On Thu, 13 Mar 2014 12:25:15 +0200 Tommi Prami tommi.pr...@gmail.com wrote: Hello, I've been wondering very long that FPC has not updated in the Lazarus. But now that new version is out, what is the plan to release lazarus version with it? Probably the next release 1.2.2 will use fpc 2.6.4. Both are bug fix releases, so they play nice together. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
2014-03-13 10:36 GMT-03:00 Martin Frb laza...@mfriebe.de: [...] Not in the short term: http://forum.lazarus.freepascal.org/index.php/topic,23823.msg143296.html#msg143296 I could do this once or twice a week. What steps to do it? I can use an own server too. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
On Thu, 13 Mar 2014 10:36:10 -0400 David Copeland david.copel...@jsidata.ca wrote: Any issues using 2.6.4 to build the svn version? No. I use it too. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
On 03/13/2014 11:01 AM, Mattias Gaertner wrote: On Thu, 13 Mar 2014 10:36:10 -0400 David Copeland david.copel...@jsidata.ca wrote: Any issues using 2.6.4 to build the svn version? No. I use it too. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Thanks! -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
Probably the next release 1.2.2 will use fpc 2.6.4. Both are bug fix releases, so they play nice together. Sweet! -Tee- -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
On Thu, Mar 13, 2014 at 01:46:56PM +0100, Mattias Gaertner wrote: I've been wondering very long that FPC has not updated in the Lazarus. But now that new version is out, what is the plan to release lazarus version with it? Probably the next release 1.2.2 will use fpc 2.6.4. Both are bug fix releases, so they play nice together. Is there already a patch to get 1.2 to build? (is it just r43371?) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Any active plans to release Lazarus with FPC 2.6.4
On Thu, 13 Mar 2014 22:25:45 +0100 Marco van de Voort mar...@stack.nl wrote: On Thu, Mar 13, 2014 at 01:46:56PM +0100, Mattias Gaertner wrote: I've been wondering very long that FPC has not updated in the Lazarus. But now that new version is out, what is the plan to release lazarus version with it? Probably the next release 1.2.2 will use fpc 2.6.4. Both are bug fix releases, so they play nice together. Is there already a patch to get 1.2 to build? (is it just r43371?) A patch for what? Is there a bug? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
On Wed, 12 Mar 2014 14:04:47 +0200 FreeMan freema...@delphiturkiye.com wrote: Hello, Is it possible add menu item on right click on form while designing, Hide none visual components. This is so useful while setting visual component position and sizes. Thank you Good idea. Feel free to create a feature request. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] LabelEdit behavior
I noticed when I put bidimode right to left on LabelEdit, the label changes ( to ), and puts one instance of leading ( at the right end of the label. This happens in the IDE and runtime. Am I being obtuse, or should I put something in Bugzilla? -Chris Everything at or below the line is a signature, not to be confused with the body of the email above. Sorry about the last signature text that seemed to have some people questioning my sanity. We are what we repeatedly do. Excellence, then, is not an act, but a habit. -Aristotle -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus 1.2 Release
2014-03-13 11:47 GMT-03:00 silvioprog silviop...@gmail.com: 2014-03-13 10:36 GMT-03:00 Martin Frb laza...@mfriebe.de: [...] Not in the short term: http://forum.lazarus.freepascal.org/index.php/topic,23823.msg143296.html#msg143296 I could do this once or twice a week. What steps to do it? I can use an own server too. I just saw that you answered me after I opened the link in a comment on Lazarus forum ( http://forum.lazarus.freepascal.org/index.php/topic,23823.msg143335.html#msg143335 ). I don't know what is happening, I'm not receiving all messages from the list in my email. :S Sometimes I don't answer a comment because I don't know if someone answered me. :S :S :S -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Suggestion for IDE
This already exists: Summary0018811: Hide/Show components in form designer I apparently supported the idea back then. Now somebody just have to implement it. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
On Thu, 13 Mar 2014 22:45:44 +1030 Steve Gatenby ste...@nevets.com.au wrote: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). But the form closes anyway. procedure MyFormCloseQuery(Sender: TObject; var CanClose: boolean); Methods have a hidden Self parameter: procedure MyFormCloseQuery(Self: TObject; Sender: TObject; var CanClose: boolean); Keep in mind that this is an implementation detail of the compiler, which may be different on other platforms, may not work with special compiler flags and may change in future. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus would there be any way to accomplish what I'm after then ? I am trying to indirectly prevent the form closing (by passing the Form to a Method / Proc) So with no additions to the original forms class or instance. Thanks -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
ste...@nevets.com.au schrieb: On Thu, 13 Mar 2014 22:45:44 +1030 Steve Gatenby ste...@nevets.com.au wrote: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). would there be any way to accomplish what I'm after then ? I am trying to indirectly prevent the form closing (by passing the Form to a Method / Proc) So with no additions to the original forms class or instance. You can add your handler to the form containing Button1. Then the handler is a method, ready for assignment to the OnFormClose of any form in your project. DoDi -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Modifying Form Event
ste...@nevets.com.au schrieb: On Thu, 13 Mar 2014 22:45:44 +1030 Steve Gatenby ste...@nevets.com.au wrote: Hoping somebody may be able to explain why the following doesn't stop the Form closing. Button1 sets the method pointer correctly (I believe), as when closing the form the showmessage occurs as expected (and shows the correct form name). would there be any way to accomplish what I'm after then ? I am trying to indirectly prevent the form closing (by passing the Form to a Method / Proc) So with no additions to the original forms class or instance. You can add your handler to the form containing Button1. Then the handler is a method, ready for assignment to the OnFormClose of any form in your project. Thanks Hans, will try that out Steve DoDi -- ___ 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