Re: [Lazarus] GTK2 behaviors

2010-01-09 Thread cobines
t_show(PGtkWidget(MainMenu.Handle)) -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Application.QueueAsyncCall()

2010-01-20 Thread cobines
o a > linked list shared between threads? It would appear that RTLCriticalSection > might do what I want. Yes, it will do fine. The TCriticalSection is just a wrapper over RTLCriticalSection. -- cobines unit uGuiMessageQueue; {$mode objfpc}{$H+} interface uses Classes, SysUtils, syncobjs;

Re: [Lazarus] Application.QueueAsyncCall()

2010-01-20 Thread cobines
er thread pausing from time to time to update the GUI, then using Synchronize is prefferable. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Application.QueueAsyncCall()

2010-01-20 Thread cobines
2010/1/21 waldo kitty : > On 1/20/2010 21:01, cobines wrote: >> >> If you're not worried about your worker thread pausing from time to >> time to update the GUI, then using Synchronize is prefferable. > > as in how much "time"?? is this a standard s

Re: [Lazarus] Cross platform 'open file with default program'

2010-01-24 Thread cobines
ME type of file - icon-theme (http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html) to get icon for the MIME type I'm not aware of any implementations in pascal. -- cobines -- ___ Lazarus mailing list Lazarus@

Re: [Lazarus] Call Load/Unload library from procedure

2010-02-03 Thread cobines
y in public form procedure I get the > Access Violation when procedure is ended. > > I'll be grateful for help. You have specified different calling conventions: cdecl in main program and stdcall in the library. I think calling conventions should match. -- cobines -- _

Re: [Lazarus] Call Load/Unload library from procedure

2010-02-03 Thread cobines
link main program and the dll to the same RTL. Maybe ask about this on the FPC mailing list if you don't get a better answer here. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailma

[Lazarus] TPanel bevel and client size

2010-02-11 Thread cobines
anel with Border=bsSingle the border is drawn correctly. Is this a bug? -- cobines <>-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] TPanel bevel and client size

2010-02-12 Thread cobines
2010/2/12 Paul Ishenin : > 12.02.2010 14:33, cobines wrote: > >> If I set any of the bevels instead, the control's ClientSize remains >> the same as Size. I would expect the bevels be treated like borders >> and also reduce client size. Or is this how it's s

Re: [Lazarus] TPanel bevel and client size

2010-02-12 Thread cobines
2010/2/12 Mattias Gärtner : > Zitat von cobines : > >> 2010/2/12 Paul Ishenin : >>> >>> Bevels reduce ClientRect by BevelSize value. >> >> I thought so that they're supposed to do that, but if I put a TPanel >> on a form with a outer bevel

Re: [Lazarus] TPanel bevel and client size

2010-02-12 Thread cobines
2010/2/12 Mattias Gärtner : > Zitat von cobines : > >> 2010/2/12 Mattias Gärtner : >>> >>> Zitat von cobines : >>> >>>> 2010/2/12 Paul Ishenin : >>>>> >>>>> Bevels reduce ClientRect by BevelSize value. >>>

Re: [Lazarus] TPanel bevel and client size

2010-02-12 Thread cobines
2010/2/12 cobines : > Panel3 has a bevel and is not autosized. It includes a panel with no > borders that has Align=alClient. Bevels of Panel3 are visible. Sorry, the last sentence was supposed to be: Bevels of Panel1 are visible. -- c

Re: [Lazarus] TPanel bevel and client size

2010-02-12 Thread cobines
The issue reported in Mantis is 0011351: Wrong AutoSize when BewelWidth>1 http://bugs.freepascal.org/view.php?id=11351. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listi

Re: [Lazarus] Strip problems

2010-02-15 Thread cobines
3 .idata0000380c 0088c000 0088c000 0047e600 2**2 CONTENTS, ALLOC, LOAD, DATA 4 .rsrc a3dc 0089 0089 00482000 2**4 CONTENTS, ALLOC, LOAD, DATA Using FPC 2.5.1 rev. 14833. I don't know which binutils you have, but maybe you should update? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] PageControl vs NoteBook vs TabControl

2010-03-04 Thread cobines
2010/3/4 Flávio Etrusco : > I've just noticed the although TabPosition isn't published in > TNotebook it's actually implemented in gtk and public. Is it > implemented in Windows? It is working in Windows, GTK2, and QT4. -- cobines -- ___

[Lazarus] Mantis issue 0015565 - GTK2: Menu with big images

2010-03-14 Thread cobines
; icon based on image size on 'toggle-size-request' signal. Also I have made a small change to drawing icon, it now calculates left position the same as in GTK2. -- cobines -- ___ Lazarus mailing list Lazarus@lists.la

[Lazarus] Checkbox OnChange not fired when state changes to cbGrayed

2010-04-08 Thread cobines
Hello all, I noticed TCheckBox does not fire OnChange event when its state changes from cbUnchecked to cbGrayed (it does fire OnClick though). Is it by design, out of Delphi compatibility or should I report this as a bug? -- cobines -- ___ Lazarus

Re: [Lazarus] TListView vsIcon doesn't show icons

2010-04-09 Thread cobines
If I'm not mistaken, this is not implemented in GTK2. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Canvas Save/RestoreHandleState not destroying gdiobjects (GTK2 Linux)

2010-04-18 Thread cobines
osed to draw this way? I checked and the bug doesn't happen with LCLQT. -- cobines canvas_restore.tar.bz2 Description: BZip2 compressed data -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Canvas Save/RestoreHandleState not destroying gdiobjects (GTK2 Linux)

2010-04-18 Thread cobines
2010/4/18 Mattias Gaertner : > On Sun, 18 Apr 2010 13:00:48 +0200 > cobines wrote: >> The function writing the error is in lcl/interfaces/gtk/gtkwinapi.inc >> TGtkWidgetSet.DeleteObject: RaiseGDIObjectIsStillUsed. A comment >> inside there says: >> >> &

Re: [Lazarus] crash opening "compiler options" in gtk2 (ubuntu 10.04)

2010-05-02 Thread cobines
This is a bug in 0.9.28, which was fixed in trunk: http://bugs.freepascal.org/view.php?id=15627 -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Broken cross compile build.

2010-05-16 Thread cobines
g FPC resources for .lfms. You just only experienced it now. Some people, like me, have never experienced this for example. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] GTK2 font size smaller

2010-12-07 Thread cobines
quot; is from "qtconfig" non-lazarus QT4 app. You can compare them on the right hand side of the screenshot. There is no difference in font size between non-Lazarus GTK2 and QT4 apps but there is a difference between LCLGTK2 and LCLQT4 apps. And there is a difference

Re: [Lazarus] GTK2 font size smaller

2010-12-08 Thread cobines
Height < 0 > and Size > 0. > Now font sizes/heights (any) looks same across gtk,gtk2 and qt. Yes, after this commit when I set Font.Size now the size is the same in LCLGTK2 and LCLQT, and also the same as in non-Lazarus applications. T

[Lazarus] Taskbar button for modal forms

2010-12-23 Thread cobines
r. Is there a bug in LCLGTK2 or LCLQT? It can also be WindowManager dependent, I use XFCE. >From LCL point of view (independent of widgetset), should modal forms have taskbar button by default? -- cobines -- ___ Lazarus mailing list

Re: [Lazarus] Taskbar button for modal forms

2010-12-24 Thread cobines
gdk_window_raise(GdkWindow); {$IFDEF DebugGDKTraps} -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2010-12-24 Thread cobines
Hi, Please consider reverting commit 25431 from 0.9.30. It fixes issue: http://bugs.freepascal.org/view.php?id=0015180 but has some regressions. See new issue opened for explanation: http://bugs.freepascal.org/view.php?id=16742 -- cobines

Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2010-12-24 Thread cobines
2010/12/24 Vincent Snijders : > 2010/12/24 cobines : >> Hi, >> >> Please consider reverting commit 25431 from 0.9.30. It fixes issue: >> >> http://bugs.freepascal.org/view.php?id=0015180 >> >> but has some regressions. >> >> See new issue

Re: [Lazarus] Test the Lazarus fixes_0_9_30 branch

2010-12-24 Thread cobines
2010/12/25 Maxim Ganetsky : > 24.12.2010 20:44, cobines пишет: >> >> 2010/12/24 Vincent Snijders: >>> >>> 2010/12/24 cobines: >>>> >>>> Hi, >>>> >>>> Please consider reverting commit 25431 from 0.9.30. It fixes issue

Re: [Lazarus] Taskbar button for modal forms

2010-12-26 Thread cobines
, FALSE) (which sets _NET_WM_STATE_SKIP_TASKBAR property). LCLQT does this too by calling QWidget_setWindowFlags(Widget.Widget, QtDialog) in TQtWSCustomForm.ShowHide. I have opened issue http://bugs.freepascal.org/view.php?id=18323. -- cobines -- ___ Lazarus

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-01-02 Thread cobines
etter to use UTF8Decode, UTF8Encode. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Does Lazarus support a complete Unicode Component Library?

2011-01-02 Thread cobines
2011/1/2 Vladimir Zhirov : > cobines wrote: >> Those only work for characters in current Ansi code page. > > Yes, on Win32. They also work properly for utf-8 characters > on Linux and Mac OS X. > >> It is better to use UTF8Decode, UTF8Encode. > > UTF8Decode

[Lazarus] Taskbar button has wrong caption for main form (mantis #0018481)

2011-01-16 Thread cobines
e? Does it have something to do with Application.TaskBarBehavior property? -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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

[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 : > 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

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

2011-01-29 Thread cobines
2011/1/29 Paul Ishenin : > 29.01.2011 15:29, 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 separa

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

2011-01-30 Thread cobines
2011/1/30 Andreas Schneider : > 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 retur

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
quot; for details. >> This GDB was configured as "i686-pc-mingw32"... >> (gdb) info line *0x0043FEFF >> No line number information available for address >> 0x43feff >> (gdb) >> >> that doesn't really help me without a solution for 2) >> >> Any hint? > > Nobody has an idea on why an application would crash without a stack trace? > Memory overwriting/corruption perhaps? See here: http://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] 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

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 : > 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://b

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 : > Al 20/02/11 09:08, En/na cobines ha escrit: >> 2011/2/18 Luca Olivetti : >>> En/na cobines ha escrit: >>>>> [*]addresses only, in spite of the executable having full debug and line >>>>> number information[**], >>

[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.freepasca

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

Re: [Lazarus] Testing Assigned object

2011-04-25 Thread cobines
p: Pointer = 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 ma

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

2011-05-23 Thread cobines
r uses property which 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 -- ___

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

2011-05-23 Thread cobines
2011/5/23 Mattias Gaertner : > On Mon, 23 May 2011 22:07:58 +0200 > cobines wrote: > >> Hello. >> >> In TWinControl.Destroy there is code: >> >>   while n > 0 do >>   begin >>     Control := Controls[n - 1]; >>     Remove(Control);   &l

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
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] Converting Icon from Windows handle to TBitmap with transparency

2011-06-07 Thread cobines
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] Converting Icon from Windows handle to TBitmap with transparency

2011-07-14 Thread cobines
2011/6/8 cobines : > 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 th

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

2011-07-14 Thread cobines
2011/7/15 cobines : > 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 relat

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

2011-08-01 Thread cobines
ixed 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] 'with' is evil, isn't it?

2011-08-02 Thread cobines
ne decided 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] 'with' is evil, isn't it?

2011-08-02 Thread cobines
what I see "with" creates an implicit local var or uses a register to store the address. For records one could use tmp as a pointer to the record, and then refer to tmp^. -- cobines -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
or always 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.freepas

Re: [Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
my 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

Re: [Lazarus] Editor font height in IDE options

2011-08-08 Thread cobines
rrectly 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

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 -- ___ La

Re: [Lazarus] Editor font height in IDE options

2011-08-09 Thread cobines
#x27;t use 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.

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

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

2011-09-18 Thread cobines
ersions where it previously didn't. We 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

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

2011-09-19 Thread cobines
TF-8 anyway so 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
und 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

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
2011/9/19 Bart : > 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://lists.lazarus.freepascal.

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
uot;-g" when "Automatic" is chosen? 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
explicitly? I thought -g always chooses the best supported debug info 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 --

Re: [Lazarus] RE : Generating line info

2011-09-19 Thread cobines
all other options as they where That is not my experience. In my projects I had set in project options "-g" and "-gl". After opening project in new Lazarus it defaults to "Automatic (Dwarf with sets)". From lpi before: After:

Re: [Lazarus] Generating line info

2011-09-19 Thread cobines
2011/9/19 cobines : > 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/lazarus

Re: [Lazarus] RE : Generating line info

2011-09-19 Thread cobines
new saved lpi file > > 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 : > 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 mailin

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

2011-09-20 Thread cobines
programmer) will use them and thus > 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 au

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

2011-09-20 Thread cobines
2011/9/20 Michael Schnell : > 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 reco

Re: [Lazarus] Thread finalization

2011-09-21 Thread cobines
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] Spurious package rebuild

2011-09-22 Thread cobines
nd it rebuilds FCL, LCL: Old=" -MObjFPC -Scghi -O1 -gl -vewnhi -l fcllaz.pas" Now=" -MObjFPC -Scghi -O1 -gw2 -godwarfsets -gl -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&#

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] Alternative to getTime() of JavaScript

2011-09-26 Thread cobines
Utils.Now is local not UTC. DateTimeToUnix cannot distinguish if passed parameter is UTC 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 -s"1970-01-01 00:00:00 +" -R; echo -n

Re: [Lazarus] TControl.Click?

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

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

2011-10-04 Thread cobines
. $ 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 -- ___ Lazaru

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

2011-10-05 Thread cobines
} >>   {$ENDIF} >    SysUtils >>   ; Still the same. 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] 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 -- _

Re: [Lazarus] RE : Debug info for packages

2011-10-07 Thread cobines
s that use but only some of them use it, like LCL, FCL. -- 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] 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] 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
log 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/lazarus

Re: [Lazarus] Configure build Lazarus

2011-10-24 Thread cobines
2011/10/24 Mattias Gaertner : > On Mon, 24 Oct 2011 16:20:36 +0200 > cobines wrote: >> If you add a define in Configure Build Lazarus Dialog then packages >> with $(IDEBuildOptions) are not rebuilt until you restart IDE. > > Huh? > I do it this every day. I don't n

Re: [Lazarus] Configure build Lazarus

2011-10-24 Thread cobines
2011/10/24 Mattias Gaertner : > On Mon, 24 Oct 2011 17:09:40 +0200 > cobines wrote: > >> 2011/10/24 Mattias Gaertner : >> > On Mon, 24 Oct 2011 16:20:36 +0200 >> > cobines wrote: >> >> If you add a define in Configure Build Lazarus Dialog then p

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

2011-10-25 Thread cobines
dIndex. 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@lists.lazarus.

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

2011-10-25 Thread cobines
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] TLMMouseEvent now lacks "state"

2011-10-27 Thread cobines
x27;, 'ssSuper', 'ssHyper', 'ssAltGr', 'ssCaps', 'ssNum', - 'ssScroll', 'ssTriple', 'ssQuad', 'ssExtra1', 'ssExtra2'); + 'ssMeta', 'ssSuper', 'ssHyper', 'ssAl

Re: [Lazarus] TLMMouseEvent now lacks "state"

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

[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 li

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 -- co

[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

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 l

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

2011-10-29 Thread cobines
2011/10/29 Mattias Gaertner : > On Sat, 29 Oct 2011 17:21:42 +0200 > cobines 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

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

2011-10-29 Thread cobines
be rebuilt. 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

  1   2   >