Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny
On 20.12.2015 12:52, Jürgen Hestermann wrote: Am 2015-12-20 um 08:06 schrieb Ondrej Pokorny: > I just add that you had to care for mrCancel before as well (if default dialog was shown). > It was returned when the dialog was closed with the system close button in the window caption. So th

Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny
On 20.12.2015 17:51, Jürgen Hestermann wrote: > Writing a documentation for features in development is not very reasonable. Realy? I thought that it is very important to document the *intended* behaviour somewhere before (or at least while) coding it so that everybody knows how things *should*

Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-20 Thread Ondrej Pokorny
On 20.12.2015 17:51, Jürgen Hestermann wrote: Where do I find it? I use official (pre) releases only. Btw. if you read http://wiki.lazarus.freepascal.org/Lazarus_1.6.0_release_notes , you find this information there: * Added 'iscancel' parameter to QuestionDlg. If no cancel button is

Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-19 Thread Ondrej Pokorny
On 19.12.2015 16:34, Mattias Gaertner wrote: On Sat, 19 Dec 2015 11:17:26 +0100 Jürgen Hestermann <juergen.hesterm...@gmx.de> wrote: Am 2015-12-13 um 16:52 schrieb Ondrej Pokorny: > The escape key selects mrCancel now (this was changed) - I am not sure I understand this right. Doe

Re: [Lazarus] Opposite of UTF8CharToByteIndex

2015-12-17 Thread Ondrej Pokorny
On 17.12.2015 14:49, Mattias Gaertner wrote: On Thu, 17 Dec 2015 14:42:20 +0100 Ondrej Pokorny <laza...@kluug.net> wrote: I am struggling to find the opposite of UTF8CharToByteIndex from LazUTF8. I.e. I need to convert ByteIndex to Char index. Is there such a function? Or do I have to

Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Ondrej Pokorny
On 16.12.2015 18:20, Bart wrote: On 12/16/15, Ondrej Pokorny<laza...@kluug.net> wrote: >I had the same issue on Windows 10 and was advised to check >DisableLoadSymbolsForLibraries (I don't remember who advised me, sorry). Yoe beat me to it. (And I was the one.) :) Is

Re: [Lazarus] lazarus 1.6 rc1 fpc 3.0 opendialog

2015-12-16 Thread Ondrej Pokorny
On 16.12.2015 17:52, Andrea Mauri wrote: Dear all, windows 10, lazarus 1.6 rc1 fpc 3.0 I put a button and an opendialog on a form Onclick button I put opendialog.execute clicking button lazarus stop workin with message debugger error gdb stop working I had the same issue on Windows 10 and was

Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-13 Thread Ondrej Pokorny
On 13.12.2015 16:38, Jürgen Hestermann wrote: Also, the escape key no longer selects mrAbort. I cannot exit from the dialog with escape. Is this intended? The escape key selects mrCancel now (this was changed) - but you should definitely be able to exit the dialog with escape. See

Re: [Lazarus] Lazarus 1.6 and QuestionDLG

2015-12-13 Thread Ondrej Pokorny
On 13.12.2015 17:59, Jürgen Hestermann wrote: Am 2015-12-13 um 16:52 schrieb Ondrej Pokorny: On 13.12.2015 16:38, Jürgen Hestermann wrote: Also, the escape key no longer selects mrAbort. I cannot exit from the dialog with escape. Is this intended? The escape key selects mrCancel now

Re: [Lazarus] Release Candidate 1 of Lazarus 1.6

2015-12-12 Thread Ondrej Pokorny
On 12.12.2015 18:21, Anthony Walter wrote: I don't know if this has been reported, but on several Lazarus installations I get a "Division by zero" exception when using the "Manage desktops" dialog, located under the "Tools -> Desktops ..." menu. On some systems the error is reported as a

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-11 Thread Ondrej Pokorny
On 11.12.2015 09:10, "Jürgen Hestermann" wrote: UTF8Delete probably takes an AnsiString (or String) as var parameter and for var parameters the static codepages have to match exactly (String has CP_ACP while Utf8String has CP_UTF8). Just please help me understanding this: The unit LazUTF8 unit

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Ondrej Pokorny
On 10.12.2015 18:41, Ondrej Pokorny wrote: Why do you insist in using UTF8Delete? Use just Delete: var xUF: UTF8String; begin Delete(xUF, 1, 1); end; Sorry, of course you want to specify position/length in real chars. Ondrej -- ___ Lazarus

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Ondrej Pokorny
On 10.12.2015 18:36, Juha Manninen wrote: On Thu, Dec 10, 2015 at 7:29 PM, Jürgen Hestermann wrote: Then why does the compiler complain when I feed UTF8Delete with an UTF8String? As it told you. It got UTF8String but expected AnsiString. I think it would work with a

Re: [Lazarus] UTF8String and UTF8Delete

2015-12-10 Thread Ondrej Pokorny
On 10.12.2015 18:29, Jürgen Hestermann wrote: Am 2015-12-10 um 18:22 schrieb Juha Manninen: On Thu, Dec 10, 2015 at 6:49 PM, Jürgen Hestermann wrote: How can I use UTF8Delete on an UTF8string? You can't. Please read this :

Re: [Lazarus] Lazarus MailList maintainer

2015-12-01 Thread Ondrej Pokorny
On 01.12.2015 21:17, Aradeonas wrote: Hi, Can I know who is Lazarus MailList maintainer? Nothing is easier: http://lists.lazarus.freepascal.org/mailman/listinfo http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus Ondrej -- ___ Lazarus

Re: [Lazarus] Testing TMemo.ScrollBy

2015-11-30 Thread Ondrej Pokorny
On 29.11.2015 20:25, Juha Manninen wrote: I implemented TCustomMemo.ScrollBy together with fixing issue: http://bugs.freepascal.org/view.php?id=29067 See my comment there. Now I need help to test the changes, especially the widgetsets I could not test myself. Windows experts, is my solution

Re: [Lazarus] Fast GUI

2015-11-30 Thread Ondrej Pokorny
On 30.11.2015 12:39, Michael Schnell wrote: bu7t the result is excellent. I don't have Flash player installed. IMO it's bad practice to force your users to install any third-party software. Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] Testing TMemo.ScrollBy

2015-11-29 Thread Ondrej Pokorny
On 29.11.2015 20:25, Juha Manninen wrote: I implemented TCustomMemo.ScrollBy together with fixing issue: http://bugs.freepascal.org/view.php?id=29067 See my comment there. Good job! Now I need help to test the changes, especially the widgetsets I could not test myself. Windows experts,

Re: [Lazarus] In the event anyone want to read social reactions to FPC 3.0

2015-11-26 Thread Ondrej Pokorny
On 27.11.2015 06:38, leledumbo wrote: Some people have edited their comments which is why the slow remark is no longer there Does that mean now the admit that FPC is FAST? How could anyone know anybody else's intentions? Ondrej -- ___ Lazarus

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-26 Thread Ondrej Pokorny
On 26.11.2015 15:07, Jamal Gabra wrote: Tried that already, but Lazarus unable to complete rebuilding. It errors out as per the attached screen shot: Then don't use trunk versions, use stable versions instead (FPC 3.0 and Lazarus 1.4). Ondrej --

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-26 Thread Ondrej Pokorny
On 26.11.2015 15:21, Jamal Gabra wrote: I use Last stable release side by side with Laz1.4.4+FPC3.0.1 (last fixes). Only wanted to have trunk available as well. Build Lazarus trunk with FPC 3.0.*. You won't have this problem. Ondrej -- ___ Lazarus

Re: [Lazarus] Why TDateTimePicker.Checked works as Enabled?

2015-11-20 Thread Ondrej Pokorny
Feel free to provide patches. Don't forget to check different WidgetSets (Win32, Qt, Gtk2, Carbon at least). I'll review them. Some "strange" behavior may be caused by the fact that some features are not supported on all WS and therefore it's better to keep the same "strange" behavior

Re: [Lazarus] Why TDateTimePicker.Checked works as Enabled?

2015-11-20 Thread Ondrej Pokorny
On 20.11.2015 12:26, Gabor Boros wrote: I am happy because TDateTimePicker have an internal CheckBox. But completely don't understand why Checked works as Enabled. Me neither. How does Delphi behave? It has to be changed if it is not due to compatibility with Delphi. For me

Re: [Lazarus] Sparta docked form editor moved to trunk

2015-11-19 Thread Ondrej Pokorny
Great! See the issue reports: http://bugs.freepascal.org/view.php?id=29038 http://bugs.freepascal.org/view.php?id=29039 Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-19 Thread Ondrej Pokorny
On 20.11.2015 07:14, Jamal Gabra wrote: singleinstance.pp(74,12) Fatal: Can't find unit singleinstance used by CustApp Try to clean build. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-19 Thread Ondrej Pokorny
On 20.11.2015 07:14, Jamal Gabra wrote: Warning: Recompiling singleinstance, checksum changed for AdvancedIPC And before Clean update your Lazarus trunk. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-19 Thread Ondrej Pokorny
On 20.11.2015 07:40, Jamal Gabra wrote: Run -> Clean up and Build ... Do you have the problem when compiling a custom application or Lazarus IDE? If Lazarus IDE: Tools -> Configure "Build Lazarus" -> Clean Up -> Clean All. Ondrej -- ___ Lazarus

Re: [Lazarus] Upon rebuilding Trunk version there is an error

2015-11-19 Thread Ondrej Pokorny
On 20.11.2015 07:49, Jamal Gabra wrote: There is no problem compiling a custom application. The problem only within Lazarus IDE. When I do: Tools -> Configure "Build Lazarus" -> Clean Up -> Clean All I get: custapp.pp(21,23) Fatal: Cannot find singleinstance used by CustApp. Make sure all

Re: [Lazarus] Fast file reading using file cache

2015-11-19 Thread Ondrej Pokorny
On 19.11.2015 16:18, Aradeonas wrote: using OS cache system Why OS cache system when you then talk about file is large so I cant copy it to memory. ? This thread might help you: http://free-pascal-general.1045716.n5.nabble.com/buffered-filestream-td5709980.html Ondrej --

Re: [Lazarus] Please test this page

2015-11-19 Thread Ondrej Pokorny
I see that you are now using the docs from trunk. Great! Please add a date/time when the docs have been generated. If it is possible also the SVN revision number used to generate it. Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] Please test this page

2015-11-18 Thread Ondrej Pokorny
On 18.11.2015 11:28, Anthony Walter wrote: You are viewing the page directly, bypassing the iframes iframes are not good web design. Use AJAX instead. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Sparta docked form editor moved to trunk

2015-11-18 Thread Ondrej Pokorny
On 19.11.2015 02:40, Anthony Walter wrote: Juha, wow this is gonna be the gold standard. One BIG problem I noticed right off however. If you put a control on the form, for example a button, you cannot remove it. Tested on Gtk2 Linux, Ubuntu with Unity desktop. This works correctly on

Re: [Lazarus] Please test this page

2015-11-17 Thread Ondrej Pokorny
I don't know about RTL and FCL but the LCL docs in http://lazarus-ccr.sourceforge.net/docs/lcl/index.html are terribly outdated. For example see the page: http://lazarus-ccr.sourceforge.net/docs/lcl/controls/twincontrol.canfocus.html It has definitely not been updated since revision 36803

Re: [Lazarus] Please test this page

2015-11-17 Thread Ondrej Pokorny
On 17.11.2015 17:39, Marco van de Voort wrote: Is that the case for the current release cycle? Keep in mind that the online docs reflect release, not trunk status. Yes. I gave you the example of http://lazarus-ccr.sourceforge.net/docs/lcl/controls/twincontrol.canfocus.html - it hasn't been

Re: [Lazarus] Please test this page

2015-11-17 Thread Ondrej Pokorny
On 17.11.2015 17:57, Marco van de Voort wrote: Those are from last january, my guess is that they are of trunk. Either me or you look wrongly. When I show the log for docs/xml/lcl/controls.xml I don't see any modification from last January. I see this: The text was changed in revision

Re: [Lazarus] Please test this page

2015-11-17 Thread Ondrej Pokorny
The portal is very nice. I like the search especially. What docs version are you using? E.g. http://docs.getlazarus.org/#lcl+comctrls+ttreenode.selectedindex#sidebar#empty does not reflect the docs in the trunk (I changed this page some days ago). If you use trunk - maybe create a cron job

Re: [Lazarus] Lazarus Mailinglist Reader

2015-11-16 Thread Ondrej Pokorny
Thanks for the info. When I use the 4.8 branch and FPC 3.1.1, I still get the same AV when clicking on a message: #0 TBASEVIRTUALTREE__PACKARRAY(0x0, 1378976, ) at VirtualTrees.pas:13233 #1 TBASEVIRTUALTREE__INTERNALADDTOSELECTION(0x150aa0, 1, false, reading variable>) at

Re: [Lazarus] Lazarus Mailinglist Reader

2015-11-16 Thread Ondrej Pokorny
Thank you Werner for sharing it! I wanted to build the application from the sources and I had the following problems. 1.) What CCR version do you use? I used trunk virtualtreeview-new and it reported a streaming problem in TVirtualStringTree.Header.Style - hsXPStyle doesn't exist. For me:

Re: [Lazarus] GZip issues

2015-11-16 Thread Ondrej Pokorny
Sorry. I mixed up GZip and Zip. I was talking about ZIP :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] GZip issues

2015-11-16 Thread Ondrej Pokorny
On 15.11.2015 22:11, Werner Pamler wrote: Another question: I would prefer to avoid Abbrevia altogether and use the standard zip support in fpc. Lazarus doesn't include support for ZIP files, AFAIK. A ZIP file is a container of compressed streams. So you have to parse the ZIP file structure

Re: [Lazarus] GZip issues

2015-11-16 Thread Ondrej Pokorny
On 16.11.2015 22:03, Michael Van Canneyt wrote: Since many years, FPC has a zipper unit which contains zip and unzip functionality. Great! Thanks for the correction. I just found it. (I remembered it wrongly - it's already some time ago. I wrote a custom Zip wrapper because I needed one unit

[Lazarus] Do not recompile all package dependencies

2015-11-12 Thread Ondrej Pokorny
If I change compiler settings for a project, all packages have to be recompiled as well. Is there a chance to store the precompiled (object) files of the packages in a custom location for a project/build mode? I tried to set -FU in "Additions and Overrides" to a custom absolute path but it

Re: [Lazarus] Do not recompile all package dependencies

2015-11-12 Thread Ondrej Pokorny
On 12.11.2015 11:05, Mattias Gaertner wrote: http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Change_the_output_directory_of_project_and_all_packages Thank you Mattias, this is exactly I was looking for but missed the option. It now works the way I want, with one cosmetic issue

Re: [Lazarus] Do not recompile all package dependencies

2015-11-12 Thread Ondrej Pokorny
On 12.11.2015 13:59, Mattias Gaertner wrote: I added an example showing how to use the macros $(ProjPath) and ($PkgName) to compile packages into separate directories. Great, it works like a charm! Thank you! Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Ondrej Pokorny
On 06.11.2015 22:45, Mark Morgan Lloyd wrote: Luca Olivetti wrote: with a=somerecord, b=someotherrecord do begin a.x:=b.x; end; Just because something is 20+ years old doesn't necessarily make it bad. That syntax looks OK to me (i.e. make a and b look like consts) but I also find

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Ondrej Pokorny
On 06.11.2015 17:42, Michael Van Canneyt wrote: Ehm. How can "with" ever be safe ? You can make sure that if some property is ADDED into the with scope, it doesn't break anything by explicitely using Self (or the unit name or whatever): procedure TForm1.DoMySize; begin //... with

Re: [Lazarus] Extending TRect breaks Lazarus

2015-11-06 Thread Ondrej Pokorny
On 06.11.2015 17:08, Dmitry Boyarintsev wrote: This is odd. How adding the method to TRect didn't break much for Delphi? It did break a lot of code for Delphi. I'd think that Delphi /3d party components code also uses a lot of WITHs with TRects. Yes, it did break a lot of code in 3rd

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-05 Thread Ondrej Pokorny
On 05.11.2015 15:46, Mattias Gaertner wrote: For example a sorted TStringList with the 'Objects' as the position. The list is seldom edited so editing does not need much speed. Fast search is important. As long as there are only 20 types the structure is irrelevant. But when we extend the list

Re: [Lazarus] A big thank you!

2015-11-04 Thread Ondrej Pokorny
On 05.11.2015 01:02, Anthony Walter wrote: Regarding the state of generics, Sven has crushed it. Using trunk I haven't had a compiler problem with them in while. I consider them solid at this point. Go Sven! I know Sven is working hard on them! I didn't want to offend anybody! Ondrej --

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-04 Thread Ondrej Pokorny
On 03.11.2015 20:26, Mattias Gaertner wrote: Of course there are some hard coded defaults in codetools. For example "i:=3" can be any integer type. It would be nice if integer constants were able to resolve their type: 3 -> ShortInt 180 -> SmallInt etc etc. This would be good for: var b:

Re: [Lazarus] A big thank you!

2015-11-04 Thread Ondrej Pokorny
I can't promise you anything. I am a freelancer and if I work on Lazarus/FPC it means I don't earn any money for this particular time. I only tell my girlfriend that I work :) I don't have any company or university behind me. Therefore I unfortunately have to say I will be (and have been)

Re: [Lazarus] A big thank you!

2015-11-04 Thread Ondrej Pokorny
On 04.11.2015 10:09, Graeme Geldenhuys wrote: On 2015-11-04 07:23, Torsten Bonde Christiansen wrote: I cannot count how many times I have been annoyed that the code was autoplaced in the published section. Ah yes... that change would be very welcome. It is something that has bugged me since

Re: [Lazarus] Forwarding events/messages

2015-11-04 Thread Ondrej Pokorny
On 04.11.2015 17:54, Martin Grajcar wrote: I'd like to forward a TLMVScroll message to the parent component as a workaround for controls preventing parents from receiving mouse wheel events (I couldn't find out how to let the parents receive them). The problem is that the handler is

Re: [Lazarus] Forwarding events/messages

2015-11-04 Thread Ondrej Pokorny
On 04.11.2015 18:29, Martin Grajcar wrote: On Wed, Nov 4, 2015 at 6:07 PM, Ondrej Pokorny <laza...@kluug.net <mailto:laza...@kluug.net>> wrote: There is TControl.WndProc, but don't call it directly if you don't know what and why you are doing it. I found it in

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
On 03.11.2015 20:26, Mattias Gaertner wrote: procedure Test; >var >I: Integer; >S: SmallInt; >begin >Res := I + S; >end; > >Something like: >1.) >I = (Integer -> longint) >S = SmallInt >2.) >ResultBasicType = Compare(longint, SmallInt) -> longint -> I >3.) >ResultType =

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
On 03.11.2015 17:34, Mattias Gaertner wrote: codetools use only a simple heuristic to calculate the type of a binary operator. The function TFindDeclarationTool.CalculateBinaryOperator needs to be extended for Alias types (e.g. 'integer' instead of longint) and for ranges (e.g. if the operands

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
Probably the best approach is: 1.) Compare base types with the table. 1a.) If they are equal, goto 2. 1b.) If they differ, set winner according to table and go to 3. 2.) Compare aliases with the table, set winner. 3.) Use the original alias of the winner as result. About the table: We need

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
On 03.11.2015 20:34, Ondrej Pokorny wrote: A problem could be with such code: var i: SizeInt; j: Integer; begin k:=i+j; end; Because obviously on 32bit SizeInt=longint and Integer=longint, so there won't be a deterministic way which type wins. But this is a similar issue like the one

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
On 04.11.2015 02:25, Mattias Gaertner wrote: About the table: >We need one table for integer and one for floating-point types. >The integer table could look like ['int64', 'sizeint', 'integer', >'smallint'] (but with all integer types and probably a good idea to >allow the user to modify and

Re: [Lazarus] A big thank you!

2015-11-03 Thread Ondrej Pokorny
On 04.11.2015 08:23, Torsten Bonde Christiansen wrote: Dear Coder of code-completion Today after having updated my trunk Lazarus I started coding and did what I usually do with code completion. I was starting to implement a new OnSomething method and did the normal OnSomething :=

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
;k:=i+j" and "k:=j+i" return different types, which is the case of "left side wins".) On 04.11.2015 05:42, Ondrej Pokorny wrote: On 04.11.2015 02:25, Mattias Gaertner wrote: About the table: >We need one table for integer and one for floating-point types. >

Re: [Lazarus] Lazarus in trunk not working after Rev 50151 on MacOSX

2015-11-03 Thread Ondrej Pokorny
On 03.11.2015 17:08, Mattias Gaertner wrote: Fixed. How did you find it from the description? You are a wizard :) Sorry for introducing the bug in my code. But I know how it happened: it was introduced by CodeTools variable completion: procedure TIDECommands.PostponeUpdateEvents; begin

Re: [Lazarus] Suggestion for IDE

2015-10-31 Thread Ondrej Pokorny
On 11.10.2015 19:54, FreeMan wrote: On 11.10.2015 20:31, Ondrej Pokorny wrote: On 11.10.2015 19:19, FreeMan wrote: Ondrej, Visible always True, just resizing or not. I mean, if /"Environment" option checked, not resize but visible True. /if /"Environment" option NOT c

Re: [Lazarus] Too much space between TPageControl and its tabs

2015-10-29 Thread Ondrej Pokorny
On 29.10.2015 09:08, Luca Olivetti wrote: Hello, I have to show different things at different times in the same position. Instead of putting everything in the same spot of the form and setting Visible only the item I want to show (which makes designing difficult), I'm using a TPageControl

Re: [Lazarus] How to create a non focusable form?

2015-10-27 Thread Ondrej Pokorny
On 27.10.2015 16:04, Gabor Boros wrote: Hi All, I want to create a borderless non modal form (native Windows and Linux-Qt) which not catch the focus on mouse click. Tried with modified ControlStyle and CanFocus override but without success. Any other idea? IIRC you can use THintWindow as

Re: [Lazarus] How to create a non focusable form?

2015-10-27 Thread Ondrej Pokorny
On 27.10.2015 16:04, Gabor Boros wrote: Hi All, I want to create a borderless non modal form (native Windows and Linux-Qt) which not catch the focus on mouse click. Tried with modified ControlStyle and CanFocus override but without success. Any other idea? IIRC you can use THintWindow as

Re: [Lazarus] WMEnterSizeMove Messages not firing

2015-10-27 Thread Ondrej Pokorny
On 10.10.2015 16:19, Ondrej Pokorny wrote: On 10.10.2015 15:36, Aradeonas wrote: Now I get a kind message from Székely Balázs that show a temporary way. Great! Thanks Balázs for the code and also thanks for sharing! I added the workaround to the bug report: http://bugs.freepascal.org

Re: [Lazarus] Finding memory leaks

2015-10-25 Thread Ondrej Pokorny
On 25.10.2015 14:36, Aradeonas wrote: Yea it remove and even I remove all of the list items it get the same result. So Michael, what should I do about this? How can I really free it ? Use another memory manager (?) Ondrej -- ___ Lazarus mailing

Re: [Lazarus] Finding memory leaks

2015-10-25 Thread Ondrej Pokorny
On 25.10.2015 17:29, Aradeonas wrote: Use another memory manager (?) Can you explain more or give an example? The memory manager decides about how to allocate and release memory from/back to system. https://www.google.at/search?q=fpc+memory+manager

Re: [Lazarus] Debugging of packages

2015-10-20 Thread Ondrej Pokorny
On 19.10.2015 12:52, Mattias Gaertner wrote: You can add compiler flags to all packages of the project: http://wiki.lazarus.freepascal.org/IDE_Window:_Compiler_Options#Add_a_flag_to_project_and_all_packages Great! Thanks, that helped! Ondrej -- ___

Re: [Lazarus] StringReplace loses non-ASCII characters in FPC 3.1.1

2015-10-20 Thread Ondrej Pokorny
I found it: http://forum.lazarus.freepascal.org/index.php?topic=27034.0 SetMultiByteConversionCodePage(CP_UTF8); SetMultiByteRTLFileSystemCodePage(CP_UTF8); helped. Sorry for not finding it before. Ondrej -- ___ Lazarus mailing list

[Lazarus] StringReplace loses non-ASCII characters in FPC 3.1.1

2015-10-20 Thread Ondrej Pokorny
Hello! StringReplace (sysstr.inc) loses non-ASCII characters in FPC 3.1.1: Whereas in RemS there is correct string: After Result:=Result+RemS, the "ä" gets lost: BTW I use German Windows 10, so "ä" is a character from my ANSI encoding. I am quite sure it worked before and I couldn't

[Lazarus] Debugging of packages

2015-10-19 Thread Ondrej Pokorny
Hello! I have a project with my custom package listed in "Required packages" of the project. I am not able to debug the code in the package (I am able to debug the project code though). I assume there are some compiler settings different from the project so that I cannot step into the

Re: [Lazarus] Video: Color Picker ... and a question

2015-10-18 Thread Ondrej Pokorny
On 18.10.2015 10:47, Anthony Walter wrote: Michael, I apologize if I wasn't clear. The problems wasn't shortcut keys, rather it is showing an application window and bringing it to the foreground when your application isn't the active graphical application. That is to say, for example,

Re: [Lazarus] Type helper now work with CodeTools?

2015-10-17 Thread Ondrej Pokorny
On 17.10.2015 09:28, Sven Barth wrote: Also for numbers and enums? > It still looks strange to me. Well... It's a logical extension of the type helpers however (and Delphi compatible). The only critical part is that literal constants don't have a type per se and thus the chosen helper might

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 10:25, FreeMan wrote: On 16.10.2015 11:10, Ondrej Pokorny wrote: On 16.10.2015 10:06, FreeMan wrote: Thank you fixed. 1-) After "Configure Tookbar" Button has two dotted line there. Why? I'm not added. I cannot reproduce. Explain better. I get that screenshot,

Re: [Lazarus] Type helper now work with CodeTools?

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 05:37, Anthony Walter wrote: Well I found bugs with it which cause CodeTools will throw an access violations in the IDE. bug 28860 if a type helper in another unit has a property, the second attempt to use code insight throws an

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 10:06, FreeMan wrote: Thank you fixed. 1-) After "Configure Tookbar" Button has two dotted line there. Why? I'm not added. I cannot reproduce. Explain better. 2-) How to add spacer (dotted line) in "Toolbar configuration" --> "Toolbar commands" ? The same as before. There

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 10:52, FreeMan wrote: Thank you. Is need report new issue? or not. The editor toolbar needs refactoring in this respect. The "options" tool button should not be there at all. Instead there should be a popup menu with "Options" item as it is everywhere else. So no report is

Re: [Lazarus] Lazarus Team: Do you use unit testing?

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 15:42, Anthony Walter wrote: Ondre remarked in a previous message that he had submitted a fix for new CodeTools functionality which might have been broken in a later patch. This morning I've found 3 new issues (causing access violations) with CodeTools which were previously

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-16 Thread Ondrej Pokorny
On 14.10.2015 20:24, Anthony Walter wrote: Ondrej, Fantastic! That's exactly what I (and maybe some others) were looking for. When you check it in please reply with the revision number so I can svn diff to see only your changes. I'd be interested in reviewing them. Hopefully your addition

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-16 Thread Ondrej Pokorny
On 16.10.2015 11:28, FreeMan wrote: Ok, Thank you for your help Ondrej http://bugs.freepascal.org/view.php?id=28865 Please test if you have double separators even with the patch. Ondrej -- ___ Lazarus mailing list

Re: [Lazarus] EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 14:30, FreeMan wrote: I upgrade to r50070 then remove damaged lines, and readd old style values in environmentoptions.xml but same result. some buttons deleted, added some sperate lines -) I removed all defined "desktop"s from menu, then from "editor toolbar settings" -->

Re: [Lazarus] EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 12:05, FreeMan wrote: r50058-50059 change "EditorToolBarOptions" node's values in environmentoptions.xml after: before:

Re: [Lazarus] EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 12:31, FreeMan wrote: In r50059 toolbarconfig.pas procedure TIDEToolBarOptionsBase.SaveButtonNames(XMLConfig: TXMLConfig; SubPath: String); .. XMLConfig.SetDeleteValue(SubPath + 'Button' + IntToStr(I+1) + '/Name', ButtonNames[I], ''); has only this line, but loadbuttonnames

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 16:31, FreeMan wrote: Problem not just this damages. I can not add "Build ( Shift + F9)" in toolbar still. I wrote this, in last my mail. Ok, I see that The "Build" button cannot be added. I can confirm the bug and will check why it happens. I am sorry but I won't study the

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 18:51, FreeMan wrote: Thank you, next time just write problem or screenshot I don't care what but it has to be simply understandable. E.g. in the last email you wrote down the old list and the new list. Instead you should have checked what buttons are missing in the new list

Re: [Lazarus] Fwd: Re: EditorToolBarOptions nodes demaged

2015-10-15 Thread Ondrej Pokorny
On 15.10.2015 18:33, Ondrej Pokorny wrote: On 15.10.2015 16:31, FreeMan wrote: Problem not just this damages. I can not add "Build ( Shift + F9)" in toolbar still. I wrote this, in last my mail. Ok, I see that The "Build" button cannot be added. I can confirm the bu

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Ondrej Pokorny
On 12.10.2015 20:19, Anthony Walter wrote: I'll looked at CodeTools, attempted changes, and rapidly gave up after trying to work through all kinds of confusion. Earlier this year I offered to try once again if only I could get a little help/tutelage but no follow up contact was made. The

Re: [Lazarus] what can be wrong in this code? (qrobjects.pas)

2015-10-14 Thread Ondrej Pokorny
On 14.10.2015 13:22, Mattias Gaertner wrote: On Wed, 14 Oct 2015 13:41:30 +0300 FreeMan wrote: >[...] >note: >after this error, in editor toolbar I have "Open packages of current >unit" icon, its start blink.? I see this too under Linux/Gtk2. Since freeman

Re: [Lazarus] Disable auto identifier completion of 1 identifier

2015-10-14 Thread Ondrej Pokorny
On 14.10.2015 11:07, Mattias Gaertner wrote: On Wed, 14 Oct 2015 10:36:44 +0200 Ondrej Pokorny <laza...@kluug.net> wrote: [...] At | I hit Ctrl+Space. No identifier completion window is shown and the idetifier is automatically completed to "MyVerySpecialVar". If there is n

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Ondrej Pokorny
On 14.10.2015 10:26, Mark Morgan Lloyd wrote: If you'd used make bigide there would have been extra packages built by default, giving you things like database and RTTI support. Do you mean RTTI controls or

[Lazarus] Disable auto identifier completion of 1 identifier

2015-10-14 Thread Ondrej Pokorny
Hello! Is there a simple way how to disable automatic identifier completion if there is only one item in the identifier completion window. I mean: var MyVerySpecialVar: Integer; begin MyVeryS| At | I hit Ctrl+Space. No identifier completion window is shown and the idetifier is

Re: [Lazarus] Theoretical question about future of Lazarus

2015-10-14 Thread Ondrej Pokorny
On 14.10.2015 20:24, Anthony Walter wrote: Ondrej, Fantastic! That's exactly what I (and maybe some others) were looking for. When you check it in please reply with the revision number so I can svn diff to see only your changes. I'd be interested in reviewing them. Hopefully your addition

Re: [Lazarus] what can be wrong in this code? (qrobjects.pas)

2015-10-14 Thread Ondrej Pokorny
On 14.10.2015 13:22, Mattias Gaertner wrote: On Wed, 14 Oct 2015 13:41:30 +0300 FreeMan wrote: [...] note: after this error, in editor toolbar I have "Open packages of current unit" icon, its start blink.? I see this too under Linux/Gtk2. Juha? Probably my

Re: [Lazarus] Suggestion for IDE

2015-10-12 Thread Ondrej Pokorny
On 12.10.2015 09:37, Michael Van Canneyt wrote: I actually like this "old view". The 'Alt-P' method is much slower for me. I even restore the 'old view' in Delphi XE 10. Freeman's suggestions would not change anything about your settings. It is irrelevant if the component palette is visible

Re: [Lazarus] Editor loses focus on Compile

2015-10-12 Thread Ondrej Pokorny
On 12.10.2015 17:10, Howard Page-Clark wrote: On 12/10/2015 15:37, Ondrej Pokorny wrote: When I compile a project in the IDE with Ctrl+F9 the editor window loses focus. Instead the message window is focused. When compiling is done, message window is still focused (even after a successful

Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Ondrej Pokorny
On 12.10.2015 00:31, Mark Morgan Lloyd wrote: Ondrej Pokorny wrote: Is it possible to play a sound or beep when compiling was finished? Sometimes compiling takes some time and I am struggling to get to know that it finished. Put something in the "execute after" command (or wha

[Lazarus] Editor loses focus on Compile

2015-10-12 Thread Ondrej Pokorny
When I compile a project in the IDE with Ctrl+F9 the editor window loses focus. Instead the message window is focused. When compiling is done, message window is still focused (even after a successful compile). -> For me this is extremly annoying because every time I compile I have to take the

Re: [Lazarus] Play a sound/beep when compiling finished

2015-10-12 Thread Ondrej Pokorny
On 12.10.2015 14:00, Mattias Gaertner wrote: Yes. There is no IDEIntf event yet for all tasks stopped, nor for building project stopped. Feel free to add one. Done: http://bugs.freepascal.org/view.php?id=28839 Ondrej -- ___ Lazarus mailing list

<    1   2   3   4   >