Re: [Lazarus] Own component - problem with default published property

2012-05-16 Thread cobines
If you changed the default you should publish it with: property Style default csDropDownList; If property has default value it is not written to LFM, in that case the value is whatever you set in constructor. -- cobines -- ___ Lazarus mailing list

Re: [Lazarus] Own component - problem with default published property

2012-05-16 Thread cobines
. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TWinControl.WMEraseBkgnd - should it always set Message.Result := 1

2012-05-15 Thread cobines
painting with hbrBackground of window class) or LCLWin32 problem (set hbrBackground to NULL for example). -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] toolbar buttons (Windows vs GTK2)

2012-05-10 Thread cobines
://bugs.freepascal.org/view.php?id=11721 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Unicode text difference between source editor and other Edit controls on Windows

2012-04-26 Thread cobines
part and created a file: C:\SW\Лейбл1.txt I gave the hardcoded name to CopyFile function call and it failed. I did the same thing as you. I hardcoded a cyrillic and a japanese filename in the source file. I added neither UTF8 BOM nor {$codepage} and CopyFile succeeded. -- cobines

Re: [Lazarus] Unicode text difference between source editor and other Edit controls on Windows

2012-04-24 Thread cobines
2012/4/25 Juha Manninen juha.mannine...@gmail.com: My tests failed when I copied the file name directly to source editor. They succeeded when I used a FileNameEdit to select the file name. Did you set {$codepage ..} directive? -- cobines

Re: [Lazarus] Inconsistent results from MessageDlg()

2012-04-22 Thread cobines
form unless there's a button with Cancel=true. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] mingw64 - gdb

2012-04-21 Thread cobines
2012/4/21 Martin laza...@mfriebe.de: Or does anyone has alternative download addresses for a 64 bit win gdb.exe? Try here: http://www.drangon.org/mingw/ -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] IDE macro $MakeExe when cross-compiling

2012-04-12 Thread cobines
this? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE macro $MakeExe when cross-compiling

2012-04-12 Thread cobines
2012/4/12 Mattias Gaertner nc-gaert...@netcologne.de: I extended the macro: To get the file name of the host OS use $MakeExe(ide,filename). To get the file name of a specific OS use $MakeExe(os,filename). Thanks, Mattias! It works well. -- cobines

[Lazarus] Increase version requirement for a package in a project with IDE

2012-04-10 Thread cobines
Hello. Is it possible to increase the version requirement for a package using IDE? In the Package dialog if you click on the package the minimum/maximum will be shown at the bottom. In Project Inspector it doesn't happen. I had to change it by editing the .lpi. -- cobines

Re: [Lazarus] Increase version requirement for a package in a project with IDE

2012-04-10 Thread cobines
2012/4/10 Mattias Gaertner nc-gaert...@netcologne.de: There is already a feature request for this. OK, I see. I did search the bug tracker before but couldn't find anything. But I found it now Package deps for projects. -- cobines -- ___ Lazarus

Re: [Lazarus] TreeView sometimes calls Refresh instead of Invalidate

2012-03-30 Thread cobines
OK, thank you. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32

2012-03-30 Thread cobines
changes are made to the treeview. Can double buffering be enabled for the treeview? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] TreeView sometimes calls Refresh instead of Invalidate

2012-03-29 Thread cobines
EndUpdate. Are the explicit calls to Invalidate needed? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32

2012-03-29 Thread cobines
. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32

2012-03-29 Thread cobines
? I don't use this feature so I don't know if icons are indispensable for it to work. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TreeView sometimes calls Refresh instead of Invalidate

2012-03-29 Thread cobines
I posted patches: http://bugs.freepascal.org/view.php?id=21601 http://bugs.freepascal.org/view.php?id=21602 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] IDE Messages window uses much CPU when building a project on Win32

2012-03-28 Thread cobines
2012/3/28 Alexander Klenin kle...@gmail.com: The flicker bothers me as well, Win7, trunk. Does it also affect CPU usage? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

[Lazarus] IDE Messages window uses much CPU when building a project on Win32

2012-03-27 Thread cobines
that no lines are visible to have full CPU for compiling. Does someone else experience this as well? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Conditional compilation depending on Lazarus version?

2012-03-22 Thread cobines
to the include paths of the project. Then this works: {$I revision.inc} const revIntroducedNewFeature = '5'; begin {$IF (RevisionStr = revIntroducedNewFeature)} UseNewFeature; {$ENDIF} end; -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Setting clipboard on Linux adds ending #0

2012-03-10 Thread cobines
strips the #0) should not put trailing #0 to the clipboard; c) a bug in the program that doesn't strip the trailing zero when pasting from clipboard (in this case jEdit). -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Setting clipboard on Linux adds ending #0

2012-03-10 Thread cobines
this: Clipboard.Clear; Clipboard.AddFormat(PredefinedClipboardFormat(pcfText),s[1],length(s)); So, if actually no changes are done, I think that it wouldn't be a problem. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Setting clipboard on Linux adds ending #0

2012-03-09 Thread cobines
is specifically removed then maybe it doesn't need to be added as well. As I see it, the stream (or array) size determines the length, not the #0. I can only test by installing lots of applications and testing if copying/pasting still works after removing the #0. -- cobines

Re: [Lazarus] Setting clipboard on Linux adds ending #0

2012-03-09 Thread cobines
to the text copied to clipboard. I checked directly with X using XConvertSelection. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Setting clipboard on Linux adds ending #0

2012-03-08 Thread cobines
zero be moved to the win32 widgetset only? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Build project now rebuilds everithing

2011-11-26 Thread cobines
2011/11/26 Juha Manninen juha.mannine...@gmail.com: Removed in r33794. Juha Thanks. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Build project now rebuilds everithing

2011-11-25 Thread cobines
W dniu 2011-11-06 19:08, cobines pisze: However, weird thing. If I choose Build from menu then it doesn't seem to rebuild FCL, LCL, but if I start Build from a hotkey then it does. The call from menu item is: procedure TMainIDE.mnuBuildProjectClicked(Sender: TObject); Begin DoBuildProject

Re: [Lazarus] IsAccel bug?

2011-11-20 Thread cobines
for the next ampersand. So it seems OK. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] How to find error from 'Error compiling resources'?

2011-11-20 Thread cobines
. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] In NeedRTLAnsi, can GetACP return CP_UTF8 on Windows?

2011-11-09 Thread cobines
2011/11/8 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Tue, Nov 8, 2011 at 9:50 PM, cobines cobi...@gmail.com wrote: FNeedRTLAnsi:=GetACPCP_UTF8; This is used by FileUtil in Windows for Windows 9x support Is it possible that CP_UTF8 will ever be returned by GetACP

[Lazarus] In NeedRTLAnsi, can GetACP return CP_UTF8 on Windows?

2011-11-08 Thread cobines
, SetConsoleOutputCP. The MSDN says GetACP returns ANSI code page and CP_UTF8 is not an ANSI codepage. I have found an old page where in the comments an MS developers says GetACP does not support UTF-8. http://blogs.msdn.com/b/michkap/archive/2007/05/11/2547703.aspx?PageIndex=1#comments -- cobines

Re: [Lazarus] Build project now rebuilds everithing

2011-11-06 Thread cobines
to rebuild FCL, LCL, but if I start Build from a hotkey then it does. Or is it an issue due to some recent changes in hotkeys? But I suppose the command run from menu and hotkey should be the same. rev 33359 -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Build Lazarus with Clean all - cleaning packages

2011-11-03 Thread cobines
2011/11/1 Mattias Gaertner nc-gaert...@netcologne.de: The IDE now deletes all files in the unit output directory of a package when the package is compiled clean. Thanks. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Crash on exit (linux, gtk2)

2011-11-03 Thread cobines
Maybe the same as this: http://lists.lazarus.freepascal.org/pipermail/lazarus/2011-November/068378.html Did you update GTK2 library recently? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

[Lazarus] Build Lazarus with Clean all - cleaning packages

2011-10-29 Thread cobines
Hello. Does IDE clean all packages it depends on when rebuilding it from within the IDE with Clean All + Build? What is the difference between Clean + Build and Clean All + Build? -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Build Lazarus with Clean all - cleaning packages

2011-10-29 Thread cobines
files, then lazarus builded ok. Yes, I asked because of exactly the same problem. Cleaning with make clean, make bigideclean, etc. didn't help but deleting all *.o *.ppu manually did. -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Build Lazarus with Clean all - cleaning packages

2011-10-29 Thread cobines
2011/10/29 Mattias Gaertner nc-gaert...@netcologne.de: On Sat, 29 Oct 2011 17:21:42 +0200 cobines cobi...@gmail.com wrote: Hello. Does IDE clean all packages it depends on when rebuilding it from within the IDE with Clean All + Build? No. This is needed. OK. I even found a bug report

Re: [Lazarus] Build Lazarus with Clean all - cleaning packages

2011-10-29 Thread cobines
. But they are not and it is required to delete them first. Or it doesn't work like that? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Build Lazarus with Clean all - cleaning packages

2011-10-29 Thread cobines
2011/10/29 Mattias Gaertner nc-gaert...@netcologne.de: On Sat, 29 Oct 2011 21:09:50 +0200 cobines cobi...@gmail.com wrote: Shouldn't the package files be rebuilt automatically? Yes. They are. The IDE even add the -B option if needed. But there are some corner cases. It does work

Re: [Lazarus] TLMMouseEvent now lacks state

2011-10-27 Thread cobines
', 'ssExtra1', 'ssExtra2'); + 'ssMeta', 'ssSuper', 'ssHyper', 'ssAltGr', + 'ssTriple', 'ssQuad', 'ssExtra1', 'ssExtra2'); {$endif} var This won't compile because TShiftStateEnum has not changed in RTL. -- cobines -- ___ Lazarus mailing list

Re: [Lazarus] TLMMouseEvent now lacks state

2011-10-27 Thread cobines
2011/10/27 Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com: On Thu, Oct 27, 2011 at 4:54 PM, cobines cobi...@gmail.com wrote: I don't understand this change: Ok, I reverted the wrong stuff from gtk2 in rev 33111 ... also fixing in gtk 1 now OK, thanks. -- cobines

[Lazarus] clDefault for TCustomControl

2011-10-27 Thread cobines
that TControl.GetDefaultColor is called and the return value is clWindow. Shouldn't this mean that clDefault will always mean clWindow for this control? Is it normal that the widgetset may overwrite clDefault value? -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] clDefault for TCustomControl

2011-10-27 Thread cobines
I think something is wrong, because now I simply overridden GetDefaultColor and it isn't applied. On Gtk2 it works but I need to set ParentColor := False before assigning Parent. I have created a bug report for LCLQt: http://bugs.freepascal.org/view.php?id=20582 -- cobines

Re: [Lazarus] Treeview Node Image disappears on selected node.

2011-10-25 Thread cobines
and SelectedIndex. First image is displayed when node is not selected, second is displayed when image is selected. If you want the image to be always displayed set both indexes to the same value. -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] How can I reorder buttons into a TPanel with ChildSizing.Layout?

2011-10-25 Thread cobines
reopen the form, so if you get confused you can also reorder the items manually in the LFM file. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] make clean all after a unit is relocated

2011-10-24 Thread cobines
Try make distclean. It worked for me in this case. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Configure build Lazarus

2011-10-24 Thread cobines
then packages with $(IDEBuildOptions) are not rebuilt until you restart IDE. But if you add the define in lcl.lpk then it rebuilds. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] Configure build Lazarus

2011-10-24 Thread cobines
2011/10/24 Mattias Gaertner nc-gaert...@netcologne.de: On Mon, 24 Oct 2011 17:09:40 +0200 cobines cobi...@gmail.com wrote: 2011/10/24 Mattias Gaertner nc-gaert...@netcologne.de: On Mon, 24 Oct 2011 16:20:36 +0200 cobines cobi...@gmail.com wrote: If you add a define in Configure Build

Re: [Lazarus] TStringGrid.AutoSizeColumns leads to temporary ghost columns

2011-10-23 Thread cobines
a report to the bugtracker. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Progress on Ubuntu 11.10 Gnome shell

2011-10-20 Thread cobines
. From other people I know (I haven't tested myself) QT version works fine. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Debug info for packages

2011-10-07 Thread cobines
at the end of the FPC command line. So maybe if you used something like -g- in the Build Lazarus Options then it would disable debugging info for all packages? Or -g-s would overwrite it to Stabs. I haven't tried that however. -- cobines -- ___ Lazarus mailing

Re: [Lazarus] RE : Debug info for packages

2011-10-07 Thread cobines
sqlite3laz.pas/ /CONFIG I see it would only work for packages that use CustomOptions Value=$(IDEBuildOptions)/ but only some of them use it, like LCL, FCL. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Get LCL revision or version via ifdef

2011-10-05 Thread cobines
. If moved after ';' it gives Internal error 200501152. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Get LCL revision or version via ifdef

2011-10-04 Thread cobines
end. $ fpc test2.pas Free Pascal Compiler version 2.7.1 [2011/09/09] for i386 Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Win32 for i386 Compiling test2.pas test2.pas(17,4) Error: User defined: implementation -- cobines

Re: [Lazarus] TControl.Click?

2011-10-01 Thread cobines
2011/10/1 Mattias Gaertner nc-gaert...@netcologne.de: On Sat, 01 Oct 2011 08:39:42 +0100 Martin laza...@mfriebe.de wrote: Should that maybe compare FOnClick Action.OnExecute ? That would miss difference in Data. I added a CompareMem. There is also a function CompareMethods. -- cobines

Re: [Lazarus] Alternative to getTime() of JavaScript

2011-09-26 Thread cobines
or local. There would need to be NowToUnix() which takes Now in UTC and converts to Unix Time. $ date +%z %Z +0100 CET $ LC_ALL=C; date -s1970-01-01 00:00:00 + -R; echo -n Date: ; date +%s; /tmp/project1 Thu, 01 Jan 1970 01:00:00 +0100 Date: 0 DateTimeToUnix(Now): 3600 -- cobines

Re: [Lazarus] Spurious package rebuild

2011-09-22 Thread cobines
-vewnhi -l -gs -gl fcllaz.pas As you see it put in -gs -gl from my build lazarus options box but -gw2 -godwarfsets I don't know where it comes from. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Spurious package rebuild

2011-09-22 Thread cobines
, in Linking page the debugging info is set to Automatic (Dwarf with Sets(-gw -godwarfsets)). So that must be it. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Thread finalization

2011-09-21 Thread cobines
. If it is finished then destroy, but don't do it from OnTerminate. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-20 Thread cobines
library calls will be problematic. If you mean UTF-16 UnicodeString then I don't think there will be a problem. If your program or library uses UTF-16 and Lazarus uses UTF-8 the conversion routines will be inserted automatically by the compiler where needed. -- cobines

Re: [Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-20 Thread cobines
2011/9/20 Michael Schnell mschn...@lumino.de: On 09/20/2011 01:09 PM, cobines wrote: String=AnsiString(CP_UTF8), Meaning that a library function (or an FPC syntax candy feature) can't detect the code that is used for the string. The code page will be stored in the record describing

Re: [Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-19 Thread cobines
this is only for show. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-19 Thread cobines
application. My confusion was caused by the fact that Lazarus uses AnsiString with default system code page but inside it always stores UTF-8, sort of fooling the compiler. Is this correct? If so, is it not possible to set Lazarus to use String=AnsiString(CP_UTF8) by default? -- cobines

Re: [Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-19 Thread cobines
for current compiler condition. If in future Lazarus switches to UTF8String then applications using this type won't have to change it. But if I want to test now I need to remove it. I understand, thanks. -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
2011/9/19 Bart bartjun...@gmail.com: How can I get my stacktraces back to the style it was before? Use Stabs debugging info. I think it is default for Win32. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
? So that FPC chooses which debug info to include, not Lazarus. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
for the platform. I thought it chooses Stabs not Dwarf since it works better. Maybe that is not the case. Otherwise there's no problem. I figured out I can set Stabs in default options for new project. -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] RE : Generating line info

2011-09-19 Thread cobines
/ DebugInfoType Value=dsAuto/ /Debugging Line info is by default True, I guess. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
2011/9/19 cobines cobi...@gmail.com: I have GDB 7.3.2 from MinGW. Sorry, that is actually 7.3-2. The newest available. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo

Re: [Lazarus] RE : Generating line info

2011-09-19 Thread cobines
Please test with the latest version of Lazarus. Yes, I updated from SVN and now I get Stabs. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] using dwarf with special tricks [Re: Generating line info]

2011-09-19 Thread cobines
2011/9/19 Martin laza...@mfriebe.de: works here. (make sure your lcl is compiled with dwarf too, though I would expect it to work anyway) You are right. I needed to build LCL with -gw. Now all expressions I posted work fine. -- cobines

[Lazarus] Removed use of UTF8String in Lazarus to work with cpstrnew

2011-09-18 Thread cobines
are using UTF8String in our application just for the sake of denoting that it is UTF8 encoding not Ansi. If I would like to start testing FPC trunk with the merged cpstrnew branch, should I replace all UTF8String with String? -- cobines -- ___ Lazarus

Re: [Lazarus] generics support in Lazarus IDE

2011-08-20 Thread cobines
Thanks to Anton, support for generics was needed. Issue 19118 is still unsolved. http://bugs.freepascal.org/view.php?id=19118 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] Editor font height in IDE options

2011-08-09 Thread cobines
version. I load EditorFontHeight, if it doesn't exist I load EditorFontSize. On write I delete EditorFontHeight and write EditorFontSize. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

[Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
positive. I would be for removing the combobox altogether. I tried to find some information why it is there but I haven't found any. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman

Re: [Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
previous question, does anyone need to set height). In this case I think an edit box with +/- buttons would be more useful than the combo. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
Conversion size-height as far as I can see is in TFont.SetHeight() and TFont.SetSize(). I'll make a patch so that there is something to test. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
I have attached a patch to the issue #17694: http://bugs.freepascal.org/view.php?id=17694 Tested on Windows native, Linux Gtk2, Linux Qt and I don't see any problem with the conversion. Please someone test other widgetsets. -- cobines -- ___ Lazarus

Re: [Lazarus] 'with' is evil, isn't it?

2011-08-02 Thread cobines
to add a property to the with object. Does it have any performance advantage (in the generated code)? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?

2011-08-01 Thread cobines
if the fixed rows were not affected by the clear. Try: SG.Clean([gzNormal]); -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread cobines
2011/6/8 cobines cobi...@gmail.com: Hello everyone. I want to convert an icon retrieved by Windows API to a TBitmap saving transparency. As I understand transparency can be achieved by: - using an additional Mask bitmap - using 32bpp TBitmap with alpha channel Having the handle to an icon

Re: [Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread cobines
2011/7/15 cobines cobi...@gmail.com: Also a question: Why TIcon always has Masked=True? Icons with alpha channel don't work properly with TIcon and they don't use Mask. Is support for alpha channel icons simply not implemented? More question related to this. In function

[Lazarus] Converting Icon from Windows handle to TBitmap with transparency

2011-06-07 Thread cobines
); Is this the correct way? Why Icon does not automatically have a Mask? It does have TransparentMode and TransparentColor correctly assigned. TransparentColor is copied to TBitmap but the Mask is not copied or not automatically created. -- cobines -- ___ Lazarus

Re: [Lazarus] Access violation in SYSGETMEM_FIXED - memory corruption?

2011-05-26 Thread cobines
after 0007F910 refcount=1 size=53 TWinControl.RealSetText after 0007F910 refcount=1 size=53 -- cobines settext_debug.diff Description: Binary data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Access violation in SYSGETMEM_FIXED - memory corruption?

2011-05-26 Thread cobines
; end; there is no crash and refcount is 2 when SetText is called. And 's' is finalized after assignment to Text. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

2011-05-23 Thread cobines
calls SetParent but it doesn't do anything because Parent is already =nil. Is it correct that Control.Parent can be removed? And which should be the correct version of assignment: using FParent or Parent? -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] In TWinControl.Destroy parent is NIL'ed twice for controls

2011-05-23 Thread cobines
2011/5/23 Mattias Gaertner nc-gaert...@netcologne.de: On Mon, 23 May 2011 22:07:58 +0200 cobines cobi...@gmail.com wrote: Hello. In TWinControl.Destroy there is code:   while n 0 do   begin     Control := Controls[n - 1];     Remove(Control);   --      ...     Control.Parent := nil

Re: [Lazarus] Testing Assigned object

2011-04-25 Thread cobines
= nil; t: TObject = nil; begin end; These are not local variables? If not, what are the consequences of them being static variables? I assume it is worse, since you recommend otherwise. -- cobines -- ___ Lazarus mailing list Lazarus

Re: [Lazarus] DebugLn thread safety

2011-03-30 Thread cobines
It seems it is enough to protect the call to DebugLn with a critical section: var cs: syncobjs.TCriticalSection; procedure DebugLnThreadSafe(const s: String); begin cs.Acquire; try DebugLn(s); finally cs.Release; end; end; -- cobines

[Lazarus] DebugLn thread safety

2011-03-29 Thread cobines
Hello, Is it safe to use DebugLn from thread other than main? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] DebugLn thread safety

2011-03-29 Thread cobines
OK, thanks both for answers. DbgOutThreadLog function seems useful, but I need to write to console so I'll use DebugLn via Synchronize. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org

Re: [Lazarus] Exception with no stack trace [was: Can I be sure that timer and synchronize never fire at once?]

2011-02-20 Thread cobines
2011/2/18 Luca Olivetti l...@wetron.es: En/na cobines ha escrit: [*]addresses only, in spite of the executable having full debug and line number information[**], Did you have a different exception before that? Maybe it is this issue: http://bugs.freepascal.org/view.php?id=13518 Nope, it's

Re: [Lazarus] Exception with no stack trace [was: Can I be sure that timer and synchronize never fire at once?]

2011-02-20 Thread cobines
2011/2/20 Luca Olivetti l...@wetron.es: Al 20/02/11 09:08, En/na cobines ha escrit: 2011/2/18 Luca Olivetti l...@wetron.es: En/na cobines ha escrit: [*]addresses only, in spite of the executable having full debug and line number information[**], Did you have a different exception before

Re: [Lazarus] Exception with no stack trace [was: Can I be sure that timer and synchronize never fire at once?]

2011-02-17 Thread cobines
There seems to be a more general issue, which the patch doesn't fix. [*]addresses only, in spite of the executable having full debug and line number information[**], Did you have a different exception before that? Maybe it is this issue: http://bugs.freepascal.org/view.php?id=13518 -- cobines

Re: [Lazarus] Exception with no stack trace [was: Can I be sure that timer and synchronize never fire at once?]

2011-02-05 Thread cobines
://bugs.freepascal.org/view.php?id=12528 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Modal forms: block parent form or application

2011-01-30 Thread cobines
2011/1/30 Andreas Schneider ak...@gmx.de: On Sunday, January 30, 2011 00:13 cobines wrote: But what about dialog boxes with buttons requiring user input? Usually you want to have result which button was pressed and such dialog boxes are shown as modal with ModalResult returned. Showing

[Lazarus] Modal forms: block parent form or application

2011-01-29 Thread cobines
Form2, so I can still activate and work in Form1? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Modal forms: block parent form or application

2011-01-29 Thread cobines
2011/1/29 zeljko zel...@holobit.net: On Saturday 29 of January 2011 09:29:02 cobines wrote: Hello, I have two forms Form1 and Form2. Form1 is MainForm with ShowInTaskbar=stDefault and Form2 has ShowInTaskbar=True, so they both have taskbar buttons, I treat them as separate windows. I show

Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2011-01-17 Thread cobines
Hi, I would like to point out that these are regressions: http://bugs.freepascal.org/view.php?id=18243 http://bugs.freepascal.org/view.php?id=17554 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http

  1   2   >