Re: [Lazarus] TChart - How to read first/last values from DbChartSource after zoom

2013-05-13 Thread Gabor Boros
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 ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread patspiper
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Michael Van Canneyt
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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.

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Paul Ishenin
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Patrick Chevalley
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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

[Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Reinier Olislagers
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Paul Ishenin
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:

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Juha Manninen
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.

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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:

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Juha Manninen
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

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Reinier Olislagers
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Juha Manninen
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

[Lazarus] Keyboard shortcut conflict - can't resolve

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread zeljko
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] Maximum of 2 conflicting shortcuts are shown

2013-05-13 Thread Graeme Geldenhuys
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:

[Lazarus] Free Pascal is spelled incorrectly in IDE

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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.

Re: [Lazarus] Keyboard shortcut conflict - can't resolve

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Free Pascal is spelled incorrectly in IDE

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Paul Ishenin
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,

[Lazarus] LCL + GTK2 + CustomControl : Help needed

2013-05-13 Thread dev . dliw
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 -

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread tim launchbury
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Juha Manninen
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

[Lazarus] Get Lazarus version at runtime

2013-05-13 Thread Krzysztof
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

Re: [Lazarus] Keyboard shortcut conflict - can't resolve

2013-05-13 Thread Graeme Geldenhuys
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

[Lazarus] Clear button clears wrong command's key shortcut

2013-05-13 Thread Graeme Geldenhuys
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 - --

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread zeljko
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.

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread tim launchbury
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

Re: [Lazarus] Get Lazarus version at runtime

2013-05-13 Thread leledumbo
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. --

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-13 Thread Martin
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Get Lazarus version at runtime

2013-05-13 Thread Ludo Brands
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 --

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Luca Olivetti
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Get Lazarus version at runtime

2013-05-13 Thread Mattias Gaertner
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Graeme Geldenhuys
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

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Juha Manninen
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Jesus Reyes
--- 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

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-13 Thread silvioprog
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

Re: [Lazarus] Regressions in GTK2 interface ?

2013-05-13 Thread Juha Manninen
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

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-13 Thread Martin
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 -

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Reinier Olislagers
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

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-13 Thread silvioprog
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

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-13 Thread Martin
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

Re: [Lazarus] Lazarus mem leak reports welcome?

2013-05-13 Thread Juha Manninen
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 --

Re: [Lazarus] OpenGL with Lazarus

2013-05-13 Thread Michalis Kamburelis
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