Re: [Lazarus] TChart - How to read first/last values from DbChartSource after zoom
http://bugs.freepascal.org/view.php?id=24422 Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 06:51:18 +0100 tim launchbury t...@tlaunchbury.ukfsn.org wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 13/05/13 08:51, tim launchbury wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013, patspiper wrote: On 13/05/13 08:51, tim launchbury wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2 My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 11:24:14 +0300 patspiper patspi...@gmail.com wrote: On 13/05/13 08:51, tim launchbury wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2 Thanks. For those who think that their gtk settings is treated wrong by the LCL and want to debug it: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: On Mon, 13 May 2013 06:51:18 +0100 tim launchbury t...@tlaunchbury.ukfsn.org wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? I'm not the original poster but I'm using mageia 2 64 bits too and I just noticed the same problem (but with lazarus 1.0.8), however, the colours in the colour selection combo-box are not washed up, they're just transparent (I can see through the text that lies below). I'm using kde and the gtk2 version of Lazarus. Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird) Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 10:30:42 +0200 (CEST) Michael Van Canneyt mich...@freepascal.org wrote: On Mon, 13 May 2013, patspiper wrote: On 13/05/13 08:51, tim launchbury wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Also I have noticed that in the object inspector if I try to change the colour of a component, the list of colours is corrupted so that the boxes with the colours all look the same, almost as though they were drawn with ink and someone has spilled water on it. My Lazarus IDE menu has icons, and the OI colour selector is fine. Ubuntu 11.04 Lazarus 1.1 r41161 FPC 2.6.3 i386-linux-gtk 2 and Lazarus 1.1 r41161 FPC 2.7.1 i386-linux-gtk 2 My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173. gtk has a boolean flag 'gtk-menu-images' to control it. By default it is false. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
13.05.2013 16:35, Mattias Gaertner wrote: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange That's my code. It checks the next style options: 1) For button images. It creates a button with default options and looks for 'gtk-button-images' option. 2) For menu images. It create a menu item with default options and looks for 'gtk-menu-images' option. It also listens for those option changes. I remember I tested this rather much on some ubuntu. Btw, if you want you can change this default behavior by: a) changing your theme settings b) changing in IDE options (if you want this for IDE) / changing in TApplicationProperties object. Best regards, Paul Ishenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
I also use a KDE desktop and Lazarus Gtk2. If using the default Gtk theme oxygen-gtk there is no icon. By setting another theme (Clearlooks, qtcurve) all the menu have an icon. Patrick -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: For those who think that their gtk settings is treated wrong by the LCL and want to debug it: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange I created an application with a menu, put a breakpoint on those functions and they are not called. Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 10:36:39 +0200 Luca Olivetti l...@wetron.es wrote: Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: On Mon, 13 May 2013 06:51:18 +0100 tim launchbury t...@tlaunchbury.ukfsn.org wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? I'm not the original poster but I'm using mageia 2 64 bits too and I just noticed the same problem (but with lazarus 1.0.8), Try another theme or use a tool like dconf to change 'menus-have-icons', which is internally 'gtk-menu-images'. however, the colours in the colour selection combo-box are not washed up, they're just transparent (I can see through the text that lies below). This is not related. I'm using kde and the gtk2 version of Lazarus. Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird) Maybe Mageia did something special for thunderbird. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 10:51, En/na Luca Olivetti ha escrit: Al 13/05/13 10:35, En/na Mattias Gaertner ha escrit: For those who think that their gtk settings is treated wrong by the LCL and want to debug it: The code is in lcl/interfaces/gtk2/gtk2themes.pas function TGtk2ThemeServices.GetOption and procedure MenuImagesChange I created an application with a menu, put a breakpoint on those functions and they are not called. Just to be sure breakpoints are working, I also put one in InitThemes and it stops there as it should. I added a TApplicationProperties to the form, set ShowMenuGlyphs to sbgSystem, now GetOption is called and the result is 1, however no glyphs are shown. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Lazarus mem leak reports welcome?
Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me) and I'm getting memory leak reports sometimes, e.g.: Call trace for block $0F94C0F0 size 64 $0001003C5E35 line 11140 of finddeclarationtool.pas $0001003BF5E8 line 8598 of finddeclarationtool.pas $0001003BFB59 line 8791 of finddeclarationtool.pas $0001003AFC04 line 2860 of finddeclarationtool.pas $0001003AE919 line 3417 of finddeclarationtool.pas $0001003B6817 line 5402 of finddeclarationtool.pas $0001003AEF74 line 3295 of finddeclarationtool.pas $0001003AEA8B line 3481 of finddeclarationtool.pas Let me know if it useful to report this here and I will do so. Thanks, Reinier -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
13.05.2013 17:04, Luca Olivetti пишет: I added a TApplicationProperties to the form, set ShowMenuGlyphs to sbgSystem, now GetOption is called and the result is 1, however no glyphs are shown. Maybe you can find something useful here: http://lazarus-dev.blogspot.ru/2009/05/changes-with-button-glyphs.html Best regards, Paul Ishenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
From Patrick Chevalley : If using the default Gtk theme oxygen-gtk there is no icon. By setting another theme (Clearlooks, qtcurve) all the menu have an icon. I can confirm that. All the problem are gone after switching to Raleigh Gtk2 theme (I don't have other choices there. Clearlooks etc. are KDE themes). These output lines were clearly related to the problem, they are also gone now : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 The other problems, namely the dim Color dropdown list and the cut-off file name in editor tab's hint, are also cured by changing the Gtk2 theme in KDE. I guess this happens only with KDE 4.10.x. I updated my Mint 14 for KDE 4.10 and the problem may have started then. It is not dependent on Lazarus revision. Can others confirm to have KDE 4.10? Juha On 5/13/13, Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 13 May 2013 10:36:39 +0200 Luca Olivetti l...@wetron.es wrote: Al 13/05/13 09:37, En/na Mattias Gaertner ha escrit: On Mon, 13 May 2013 06:51:18 +0100 tim launchbury t...@tlaunchbury.ukfsn.org wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? I'm not the original poster but I'm using mageia 2 64 bits too and I just noticed the same problem (but with lazarus 1.0.8), Try another theme or use a tool like dconf to change 'menus-have-icons', which is internally 'gtk-menu-images'. however, the colours in the colour selection combo-box are not washed up, they're just transparent (I can see through the text that lies below). This is not related. I'm using kde and the gtk2 version of Lazarus. Kde applications have icons in the menus, as do other gtk2 applications (like, e.g. thunderbird) Maybe Mageia did something special for thunderbird. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 12:37:15 +0300 Juha Manninen juha.mannine...@gmail.com wrote: [...] I guess this happens only with KDE 4.10.x. I can not get menu icons under Ubuntu, even if I want, which I don't. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 11:34, En/na Paul Ishenin ha escrit: 13.05.2013 17:04, Luca Olivetti пишет: I added a TApplicationProperties to the form, set ShowMenuGlyphs to sbgSystem, now GetOption is called and the result is 1, however no glyphs are shown. Maybe you can find something useful here: http://lazarus-dev.blogspot.ru/2009/05/changes-with-button-glyphs.html Yes, I remembered something similar, that's why I added it. However, even with the default setting (sbgAlways) the menu glyphs aren't shown (glyphs in buttons are OK). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 11:37, En/na Juha Manninen ha escrit: I guess this happens only with KDE 4.10.x. I updated my Mint 14 for KDE 4.10 and the problem may have started then. It is not dependent on Lazarus revision. Can others confirm to have KDE 4.10? kde 4.8.5 in mageia 2. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
On Mon, 13 May 2013 11:10:13 +0200 Reinier Olislagers reinierolislag...@gmail.com wrote: Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me) and I'm getting memory leak reports sometimes, e.g.: Call trace for block $0F94C0F0 size 64 $0001003C5E35 line 11140 of finddeclarationtool.pas $0001003BF5E8 line 8598 of finddeclarationtool.pas $0001003BFB59 line 8791 of finddeclarationtool.pas $0001003AFC04 line 2860 of finddeclarationtool.pas $0001003AE919 line 3417 of finddeclarationtool.pas $0001003B6817 line 5402 of finddeclarationtool.pas $0001003AEF74 line 3295 of finddeclarationtool.pas $0001003AEA8B line 3481 of finddeclarationtool.pas Let me know if it useful to report this here and I will do so. Others have reported that stacktrace too, but I was never able to reproduce it. OTOH I plan to rewrite the mechanism. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
On 5/13/13, Reinier Olislagers reinierolislag...@gmail.com wrote: Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me) Which patch? I thought the valid ones are applied. If you mean removing the define HEAPTRC_WINDOW, yes I can do that. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
On 13-5-2013 12:06, Juha Manninen wrote: On 5/13/13, Reinier Olislagers reinierolislag...@gmail.com wrote: Don't know if it is useful to post this; I enabled the enhanced heaptrc output window in Lazarus trunk x64 Windows - see http://bugs.freepascal.org/view.php?id=19837 (Hint: could somebody look at applying that patch? Works fine for me) Which patch? I thought the valid ones are applied. If you mean removing the define HEAPTRC_WINDOW, yes I can do that. Sorry Juha, I meant setting that option it as default. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 5/13/13, Mattias Gaertner nc-gaert...@netcologne.de wrote: I can not get menu icons under Ubuntu, even if I want, which I don't. Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps like Gimp respect a setting : Show icons in GTK menus in KDE control center. Lazarus does not. Something is different. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Keyboard shortcut conflict - can't resolve
Hi, Attached is a screenshot showing a conflicting keyboard shortcut, but it seems it is impossible to actually find and change the menu item indicated by the arrow. As you can see from my filtered search results, the conflicting item doesn't exist. So how to I find that specific item, so I can clear its keyboard shortcut? I'm using Lazarus 1.1 r40661 FPC 2.6.3 x86_64-freebsd-gtk 2 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ attachment: Untitled.png-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 05/13/2013 10:30 AM, Michael Van Canneyt wrote: On Mon, 13 May 2013, patspiper wrote: My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173. http://stackoverflow.com/questions/8989833/gtk-menu-with-icons zeljko -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Maximum of 2 conflicting shortcuts are shown
Hi, I had about 5 conflicting keyboard shortcuts, yet the dialog displaying the conflicts only ever display 2 conflicts. I fix one, then another will appear. But all 5 do not show at the same time in the dialog. I'm using Lazarus 1.1 r40661 FPC 2.6.3 x86_64-freebsd-gtk 2 Feature Request: Wouldn't it make sense if the selected item in the conflict dialog is automatically found for the user, when the click the Back button. It is rather annoying that I have to now manually search for the item, when the IDE just showed me what was conflicting. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Free Pascal is spelled incorrectly in IDE
Hi, If you right click on the editor then select File Settings - Highlighter - FreePascal. The correct official spelling is Free Pascal - two words. I'm using Lazarus 1.1 r40661 FPC 2.6.3 x86_64-freebsd-gtk 2 NOTE: I would normally enter these messages as bug reports, but Mantis is not allowing me to log in. I can see the login page, but clicking login doesn't do anything. My browser just loads and loads for a few minutes, then I get a timeout error. I internet connection is working 100% though. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 12:32:10 +0200 zeljko zel...@holobit.net wrote: On 05/13/2013 10:30 AM, Michael Van Canneyt wrote: On Mon, 13 May 2013, patspiper wrote: My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173. http://stackoverflow.com/questions/8989833/gtk-menu-with-icons Does that mean we have to call gtk_image_menu_item_set_always_show_image(menu_item,1); ? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Keyboard shortcut conflict - can't resolve
On Mon, 13 May 2013 11:29:01 +0100 Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: Hi, Attached is a screenshot showing a conflicting keyboard shortcut, but it seems it is impossible to actually find and change the menu item indicated by the arrow. As you can see from my filtered search results, the conflicting item doesn't exist. So how to I find that specific item, so I can clear its keyboard shortcut? I'm using Lazarus 1.1 r40661 FPC 2.6.3 x86_64-freebsd-gtk 2 Can you update your Lazarus? The consistency check was replaced. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 13:24:03 +0300 Juha Manninen juha.mannine...@gmail.com wrote: On 5/13/13, Mattias Gaertner nc-gaert...@netcologne.de wrote: I can not get menu icons under Ubuntu, even if I want, which I don't. Menu icons are good. Why would somebody not want them? They are too small to recognize what they mean. Anyway, it seems other GTK apps like Gimp respect a setting : Show icons in GTK menus in KDE control center. Lazarus does not. Something is different. See Zeljko's mail. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Free Pascal is spelled incorrectly in IDE
On Mon, 13 May 2013 11:39:51 +0100 Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: Hi, If you right click on the editor then select File Settings - Highlighter - FreePascal. Fixed. The correct official spelling is Free Pascal - two words. Yes. The highlighter code was still from the times when even the free pascal webpage showed FreePascal. I'm using Lazarus 1.1 r40661 FPC 2.6.3 x86_64-freebsd-gtk 2 NOTE: I would normally enter these messages as bug reports, but Mantis is not allowing me to log in. I can see the login page, but clicking login doesn't do anything. My browser just loads and loads for a few minutes, then I get a timeout error. I internet connection is working 100% though. Others have the same problem. Mattias Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
13.05.13, 17:52, Luca Olivetti пишет: Yes, I remembered something similar, that's why I added it. However, even with the default setting (sbgAlways) the menu glyphs aren't shown (glyphs in buttons are OK). Ok. Then check how DrawMenuItemIcon works and debug it in gtk2proc.inc Best regards, Paul Ishenin -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] LCL + GTK2 + CustomControl : Help needed
Hi, as I can't describe my problem in 2 sentences, I first try to give an overview. = information you might need = System: Linux 64bit, fpc 2.6.2 / lazarus 1.0.8 Assumption: LCLGTK2 I have a C library, which creates a custom control. It takes a window handle as parent (in my case only gtk - gtk handle) and adds its visual / control to it. The plain way to use it (which works fine) is: --- snip --- gtk_init(nil, nil); // in my case gtk Window := gtk_window_new(GTK_WINDOW_TOPLEVEL); // Create a window { do some gtk stuff } // add a box to the window Box := gtk_vbox_new(False, 0); gtk_container_add(GTK_CONTAINER(window), Box); { do library init } { pass Box to library } { - there's a window with the library's visual in it :) } --- end --- Passing Window to the library in the above example works, too. = The actual problem = Now I created a custom Control for Lazarus: TCVisual = class(TWinControl). From what I saw, there are 2 different ways to implement this control in LCL: 1. Override CreateWnd with *no* inherited and pass Parent.Handle to the library. Get the childs handle from the library and set my control's handle to it. To me this seems to be the preferred way, as the hierarchy is as flat as possible: LCL Parent | TCVisual with library's handle --- Code : snip -- procedure TCVisual.CreateWnd; begin { make sure parent handle exists, if not: Parent.NeedsHandle etc. } // library's parent = control's parent parent_widget := Pointer(Parent.Handle); { pass parent_widget to the library } { do library calls } // getWidget is a replacement for getting the newly created child from the library Handle := HWND( getWidget() ); { maybe call inherited now, after handle is set (?) } end; -- end -- The problem: Gtk: Attempting to add a widget with type GtkExpandedContainer to a GtkWindow, but as a GtkBin subclass a GtkWindow can only contain one widget at a time; it already contains a widget of type GtkVBox 2. Let LCL create a Handle and pass it to the library as the parent. Hierarchy then (should) look like this: LCL Parent | TCVisual : handle created by LCL (GTK2) via TWSWinControlClass(WidgetSetClass).CreateHandle(Self, Params); | Library --- Code : snip -- procedure TCVisual.CreateWnd; begin inherited; // library's parent = control's handle parent_widget := Pointer(Handle); { pass parent_widget to the library } { do library calls } // Handle := HWND( getWidget() ); // library's handle isn't needed end; -- end -- The problem: Gtk: gtk_scrolled_window_add: assertion `bin-child == NULL' failed Apparently LCL sets bin.child, but the library assumes it to be nil - a small hack 'solved' this problem: PGtkWindow(Handle)^.bin.child := nil; Result: Gtk: gtk_scrolled_window_add(): cannot add non scrollable widget use gtk_scrolled_window_add_with_viewport() instead I also did some other 'tests', but I don't think they have any additional valuable infos. [Apart from: abusing a GroupBox's handle did work after setting bin.child to nil, instead of the GroupBox the library's visual appeared, but LCL crashed on Form.Destroy :) ] My question now is: How does LCL add controls - the parent was the main form - ? Are there e.g. additional containers somewhere (maybe invisible for the user)? [I read the LCLGTK sources, but I didn't get too much info out of it... :( ] How can I get a handle from LCL / create and add a handle which basically behaves the same way as a VBox / HBox / Window (= the ones I know to work)? I tried to create a VBox myself in CreateWnd - gtk gave a error similar to (1), so I assume there is something more I need to know on how LCLGTK2 internally handles all the gtk stuff - but I really would prefer to do as little direct gtk as possible... As I actually never did anything with gtk before, any hints may be valuable to me. If something similar was solved already, simply point to it. Thanks for reading this long message and Thanks in advance for any help Regards, d.l.i.w -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 09:37:14 +0200 Mattias Gaertner nc-gaert...@netcologne.de wrote: On Mon, 13 May 2013 06:51:18 +0100 tim launchbury t...@tlaunchbury.ukfsn.org wrote: Hi all I have the same problem as Juha with the menu icons having dissapeared. This is on 64 bit Mageia Linux with the latest lazarus and fpc from svn. Do you use KDE or Gnome? Do you run the gtk2 or the qt version of Lazarus? When has it worked? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus I am using the gtk2 version. I have only recently changed to a 64 bit OS. Previously I was using Mandriva 2012 32bit on the same hardware and everything worked fine. I am using xfce. Regards Tim -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is related. Can others confirm it? Anyone else saw these lines in stderr : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 They show in the same console you started Lazarus from. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Get Lazarus version at runtime
Hi, Does Lazarus has version tags in compiler defines? I need to use TAchart property which appear in latest SVN 1.1 version but doesn't exists in 1.0.8 Regards -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Keyboard shortcut conflict - can't resolve
On 2013-05-13 11:47, Mattias Gaertner wrote: Can you update your Lazarus? The consistency check was replaced. OK, running the latest Lazarus from trunk now. The conflicts is now clearly visible (no need for a popup dialog any more). There are still problems though. Searching for the name (2nd item) listed in the conflict area doesn't appear in the filtered (top) area. At least I can now double click the conflicted item directly, to edit the keyboard shortcut but also notice that the conflict item's title in the conflict panel is different to the dialog title where I assign the actual keyboard shortcut? So somewhere menu action titles are not updated or not kept in sync. See attached screenshot. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ attachment: Untitled2.png-- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Clear button clears wrong command's key shortcut
Hi, Continuing fighting with the IDE... ;-) The user interface for the Key Mapping screen still needs some improvement. The Clear button clears the wrong command's keyboard shortcut. See the bug report for more details http://bugs.freepascal.org/view.php?id=24426 Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 05/13/2013 12:43 PM, Mattias Gaertner wrote: On Mon, 13 May 2013 12:32:10 +0200 zeljko zel...@holobit.net wrote: On 05/13/2013 10:30 AM, Michael Van Canneyt wrote: On Mon, 13 May 2013, patspiper wrote: My lazarus has no icons in menu, GTK widgetset, KDE, x86_64 ubuntu. Revision 40173. http://stackoverflow.com/questions/8989833/gtk-menu-with-icons Does that mean we have to call gtk_image_menu_item_set_always_show_image(menu_item,1); ? That routine is avaliable from gtk-2.16, and we are still supporting minimum = 2.8. z. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 2013-05-13 11:24, Juha Manninen wrote: Menu icons are good. Why would somebody not want them? As Mattias said, they are too small, and often the action based on the icon (if you can make out what the picture is) isn't well represented. And then the most obvious one... the menu item already has clear readable text, telling the user exactly what the menu item does. So why do you need two things (icon and text) to tell a user what a menu item does? Toolbars are obviously a different matter, because often they don't have any text next to them - so the icon is all you have to go on. This is never the case with menus though - you always have the text part. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, 13 May 2013 16:12:07 +0300 Juha Manninen juha.mannine...@gmail.com wrote: Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is related. Can others confirm it? Anyone else saw these lines in stderr : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 They show in the same console you started Lazarus from. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus I can confirm that I also get this message Tim -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Get Lazarus version at runtime
http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html -- View this message in context: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-Get-Lazarus-version-at-runtime-tp4031280p4031286.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to disable the assembler window on Linux?
On 11/05/2013 05:11, silvioprog wrote: and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See: 1 - http://imagebin.org/257292 2 - http://imagebin.org/257294 (after first F8) I don't know debug code in assembler. I'm pretty sure the problem is in the IDE, because in Linux/GTK it is not able to debug a simple string variable. Do you use FPC trunk at the same revision on both systems? There is another case of this: http://forum.lazarus.freepascal.org/index.php/topic,20870.0.html It may be a case testing with an older revision of fpc. I do not have 64 bit linux. So I can not test his myself. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 2013-05-13 06:51, tim launchbury wrote: I have the same problem as Juha with the menu icons having dissapeared. I'm running JWM (Joe's Window Manager) under 64-bit FreeBSD. Menu icons are (unfortunately) still visible in all Gnome and KDE applications on my system. Switching to a Gnome 2 desktop environment, Lazarus (compiled with GTK2 interface) correctly adheres to the Gnome gconf setting - just like all the other GTK2 apps. So I can't reproduce the issue here. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Graeme Geldenhuys gra...@geldenhuys.co.uk hat am 13. Mai 2013 um 16:09 geschrieben: On 2013-05-13 06:51, tim launchbury wrote: I have the same problem as Juha with the menu icons having dissapeared. I'm running JWM (Joe's Window Manager) under 64-bit FreeBSD. Menu icons are (unfortunately) still visible in all Gnome and KDE applications on my system. What happens if you set Tools / Options / Desktop / Show glyphs for menus to always and restart the IDE? Switching to a Gnome 2 desktop environment, Lazarus (compiled with GTK2 interface) correctly adheres to the Gnome gconf setting - just like all the other GTK2 apps. So I can't reproduce the issue here. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Get Lazarus version at runtime
On 05/13/2013 04:08 PM, leledumbo wrote: http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html To the author of the help page: {$IFDEF lcl_major0} should be {$if lcl_major0} {$IFDEF} works only with defines. Here we have constants. Ludo -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 16:03, En/na tim launchbury ha escrit: On Mon, 13 May 2013 16:12:07 +0300 Juha Manninen juha.mannine...@gmail.com wrote: Based on Tim's and Luca's posts KDE is not related to the problem. However 64-bit OS is related. Can others confirm it? Anyone else saw these lines in stderr : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 They show in the same console you started Lazarus from. I can confirm that I also get this message Me too. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
Al 13/05/13 14:04, En/na Paul Ishenin ha escrit: 13.05.13, 17:52, Luca Olivetti пишет: Yes, I remembered something similar, that's why I added it. However, even with the default setting (sbgAlways) the menu glyphs aren't shown (glyphs in buttons are OK). Ok. Then check how DrawMenuItemIcon works and debug it in gtk2proc.inc I tried but I can't: as soon as I click on the menu, the breakpoint inside DrawMenuItemIcon triggers but then I cannot use the mouse or the keyboard. I had to switch to another tty to kill gdb. Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es Tel. +34 935883004 Fax +34 935883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 2013-05-13 15:35, Luca Olivetti wrote: Anyone else saw these lines in stderr : (lazarus:10785): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 32 I'm under 64-bit FreeBSD, and Lazarus (trunk) compiled with LCL-GTK2. I do not see any such output when I start Lazarus IDE. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Get Lazarus version at runtime
Ludo Brands ludo.bra...@free.fr hat am 13. Mai 2013 um 16:26 geschrieben: On 05/13/2013 04:08 PM, leledumbo wrote: http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html To the author of the help page: {$IFDEF lcl_major0} should be {$if lcl_major0} {$IFDEF} works only with defines. Here we have constants. It's the fpdoc help. I'm not the author, but I will fix it. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On 2013-05-13 15:17, Mattias Gaertner wrote: What happens if you set Tools / Options / Desktop / Show glyphs for menus to always and restart the IDE? You understood me wrong. :) Lazarus IDE displays the menu icons correctly, when you compare it to other GTK applications. If I disable/enable the showing of glyphs in the IDE, the IDE acts as it should. The issue on my system is that I can't disable button and menu icons for _all_ GTK2 apps under JWM - probably because DBUS, or GConf or whatever GTK/Gnome uses isn't loaded in just a X11 Window Manager environment (no desktop environment is loaded). This has nothing to do with Lazarus though. When I do run Gnome 2 (whole desktop environment), Lazarus IDE does work as it should. So like you, I can't reproduce the issue the original poster mentioned. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
On Mon, May 13, 2013 at 1:19 PM, Reinier Olislagers reinierolislag...@gmail.com wrote: Sorry Juha, I meant setting that option it as default. Done. See my latest note in the issue report. Please test again with FPC trunk. Some comments in source files are still needed. Also, if you know how to make it work better with debugger, please send a patch. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
--- El lun 13-may-13, Juha Manninen juha.mannine...@gmail.com escribió: De: Juha Manninen juha.mannine...@gmail.com Asunto: Re: [Lazarus] Regressions in GTK2 interface ? A: Lazarus mailing list lazarus@lists.lazarus.freepascal.org Fecha: lunes, 13 de mayo de 2013, 5:24 On 5/13/13, Mattias Gaertner nc-gaert...@netcologne.de wrote: I can not get menu icons under Ubuntu, even if I want, which I don't. Menu icons are good. Why would somebody not want them? Anyway, it seems other GTK apps like Gimp respect a setting : Show icons in GTK menus in KDE control center. Lazarus does not. Something is different. Juha Here, kubuntu 13.04 64bit, Lazarus show icons only when Show icons in GTK buttons is checked in gtk applications style (my translation from spanish), it ignores Show icons in GTK menus setting :D Jesus Reyes A. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to disable the assembler window on Linux?
2013/5/13 Martin laza...@mfriebe.de On 11/05/2013 05:11, silvioprog wrote: and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See: 1 - http://imagebin.org/257292 2 - http://imagebin.org/257294 (after first F8) I don't know debug code in assembler. I'm pretty sure the problem is in the IDE, because in Linux/GTK it is not able to debug a simple string variable. Do you use FPC trunk at the same revision on both systems? There is another case of this: http://forum.lazarus.** freepascal.org/index.php/**topic,20870.0.htmlhttp://forum.lazarus.freepascal.org/index.php/topic,20870.0.html It may be a case testing with an older revision of fpc. I do not have 64 bit linux. So I can not test his myself. Sorry for my delay please. Same problem. I'll test it on stable Lazarus/FPC soon, please wait... You can test it in a virtual machine (I'm using Linux Mint on VirtualBox). :) -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Regressions in GTK2 interface ?
On Mon, May 13, 2013 at 5:58 PM, Jesus Reyes jesus...@yahoo.com.mx wrote: Here, kubuntu 13.04 64bit, Lazarus show icons only when Show icons in GTK buttons is checked in gtk applications style (my translation from spanish), it ignores Show icons in GTK menus setting :D Ok. This was not the problem though. I have enabled both of those settings. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to disable the assembler window on Linux?
On 13/05/2013 16:07, silvioprog wrote: 2013/5/13 Martin laza...@mfriebe.de mailto:laza...@mfriebe.de On 11/05/2013 05:11, silvioprog wrote: and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See: 1 - http://imagebin.org/257292 2 - http://imagebin.org/257294 (after first F8) I don't know debug code in assembler. I'm pretty sure the problem is in the IDE, because in Linux/GTK it is not able to debug a simple string variable. Do you use FPC trunk at the same revision on both systems? There is another case of this: http://forum.lazarus.freepascal.org/index.php/topic,20870.0.html It may be a case testing with an older revision of fpc. I do not have 64 bit linux. So I can not test his myself. Sorry for my delay please. Same problem. I'll test it on stable Lazarus/FPC soon, please wait... You can test it in a virtual machine (I'm using Linux Mint on VirtualBox). :) One other thing: I am not sure if your LCL is compiled with stabs or dwarf. But when testing, if either one fixes it, then also recompile the LCL. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
On 13-5-2013 16:55, Juha Manninen wrote: On Mon, May 13, 2013 at 1:19 PM, Reinier Olislagers reinierolislag...@gmail.com wrote: Sorry Juha, I meant setting that option it as default. Done. See my latest note in the issue report. Please test again with FPC trunk. Thanks, see my note as well: it still works with FPC+Laz trunk but seems to show up regardless of how Laz was compiled (with or without -gh). Some comments in source files are still needed. I'll leave that to Cyrax who submitted the patch. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to disable the assembler window on Linux?
2013/5/13 Martin laza...@mfriebe.de On 13/05/2013 16:07, silvioprog wrote: 2013/5/13 Martin laza...@mfriebe.de On 11/05/2013 05:11, silvioprog wrote: and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See: 1 - http://imagebin.org/257292 2 - http://imagebin.org/257294 (after first F8) I don't know debug code in assembler. I'm pretty sure the problem is in the IDE, because in Linux/GTK it is not able to debug a simple string variable. Do you use FPC trunk at the same revision on both systems? There is another case of this: http://forum.lazarus.freepascal.org/index.php/topic,20870.0.html It may be a case testing with an older revision of fpc. I do not have 64 bit linux. So I can not test his myself. Sorry for my delay please. Same problem. I'll test it on stable Lazarus/FPC soon, please wait... You can test it in a virtual machine (I'm using Linux Mint on VirtualBox). :) One other thing: I am not sure if your LCL is compiled with stabs or dwarf. But when testing, if either one fixes it, then also recompile the LCL. I compiled the IDE with: $ make clean all -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] How to disable the assembler window on Linux?
On 13/05/2013 18:08, silvioprog wrote: 2013/5/13 Martin laza...@mfriebe.de mailto:laza...@mfriebe.de On 13/05/2013 16:07, silvioprog wrote: 2013/5/13 Martin laza...@mfriebe.de mailto:laza...@mfriebe.de On 11/05/2013 05:11, silvioprog wrote: and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See: 1 - http://imagebin.org/257292 2 - http://imagebin.org/257294 (after first F8) I don't know debug code in assembler. I'm pretty sure the problem is in the IDE, because in Linux/GTK it is not able to debug a simple string variable. Do you use FPC trunk at the same revision on both systems? There is another case of this: http://forum.lazarus.freepascal.org/index.php/topic,20870.0.html It may be a case testing with an older revision of fpc. I do not have 64 bit linux. So I can not test his myself. Sorry for my delay please. Same problem. I'll test it on stable Lazarus/FPC soon, please wait... You can test it in a virtual machine (I'm using Linux Mint on VirtualBox). :) One other thing: I am not sure if your LCL is compiled with stabs or dwarf. But when testing, if either one fixes it, then also recompile the LCL. I compiled the IDE with: $ make clean all Not sure which option it will take when building via make. You can specify them in the package LCL options (then LCL should rebuild, if you build your project) -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus mem leak reports welcome?
Ok Someone must provide one more patch. I am not the best person to conduct this issue because I mainly use Linux and I don't currently have FPC trunk on my Windows. Anyway, I think we are close to finishing line now with this issue, and the current code does not break anything. Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] OpenGL with Lazarus
Mattias Gaertner wrote: On Fri, 10 May 2013 11:47:54 +0300 Tommi Pramitommi.pr...@gmail.com wrote: Hello, Is there any abstraction of OpenGL for Lazarus/FPC. I am not that interested on learning OpenGL at low level, but rather use what it can provide, a bit higher level? Similar to GlScene... (Or is there Port of GlScene for Lazarus(FPC)... ) See here http://lmgtfy.com/?q=glscene+lazarus You can also try Castle Game Engine, an open-source 3D game engine for Lazarus/FPC, see http://wiki.freepascal.org/Castle_Game_Engine and http://castle-engine.sourceforge.net/engine.php :) Michalis -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus