Re: [Lazarus] Bug? Form (in design mode) shrinks every time i click on a component in the palette
about 30 pixel recall me scrollbar width 2015-04-17 13:12 GMT+02:00 Kostas Michalopoulos badsectorac...@gmail.com: So i have this weird problem under Linux with the GTK2 backend (it doesn't happen in the Qt backend): every time i click on a component button in the palette, the designed form shrinks a bit (about 30 pixels or so). This happens in the stable 1.2 version, 1.4RC and trunk. Deleting ~/.lazarus etc doesn't fix it so it isn't a settings issue. I tried to debug it a bit by adding breakpoints in SetBounds, DoOnResize, etc but couldn't find where the resize request comes from (OnResize stuff comes from a WM message). What is even more weird, commenting out the OnClick code in the component palette so that it isn't handled at all, still causes it - i suspect some weird combination of GTK+ events might cause it since the buttons are still pressed. Although TBH this was mostly shooting blind trying to find some clue. The only thing i suspect is the window manager i'm using, Window Maker, might not support some of the more recent window hint/style/etc stuff (although i'm using the latest version and is in active development since a few years now). Steam also seems to have trouble with interacting with wmaker, but that one implements its own widgets and it might be a bug they didn't bother to fix. Every other program i've tried seems to work fine with wmaker so i'm not sure if it is that (and besides it works fine with the Qt backend). Does anyone have any idea what might cause this and how to fix it (no, replacing wmaker isn't an option :-P besides if it is a bug there i'll just fix wmaker)? -- ___ 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
[Lazarus] Bug? Form (in design mode) shrinks every time i click on a component in the palette
So i have this weird problem under Linux with the GTK2 backend (it doesn't happen in the Qt backend): every time i click on a component button in the palette, the designed form shrinks a bit (about 30 pixels or so). This happens in the stable 1.2 version, 1.4RC and trunk. Deleting ~/.lazarus etc doesn't fix it so it isn't a settings issue. I tried to debug it a bit by adding breakpoints in SetBounds, DoOnResize, etc but couldn't find where the resize request comes from (OnResize stuff comes from a WM message). What is even more weird, commenting out the OnClick code in the component palette so that it isn't handled at all, still causes it - i suspect some weird combination of GTK+ events might cause it since the buttons are still pressed. Although TBH this was mostly shooting blind trying to find some clue. The only thing i suspect is the window manager i'm using, Window Maker, might not support some of the more recent window hint/style/etc stuff (although i'm using the latest version and is in active development since a few years now). Steam also seems to have trouble with interacting with wmaker, but that one implements its own widgets and it might be a bug they didn't bother to fix. Every other program i've tried seems to work fine with wmaker so i'm not sure if it is that (and besides it works fine with the Qt backend). Does anyone have any idea what might cause this and how to fix it (no, replacing wmaker isn't an option :-P besides if it is a bug there i'll just fix wmaker)? -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Updating Cursor position on Ctrl+Click code navigation
Hi, Is there a way to tell Lazarus to move the current cursor to the location where I did a Ctrl+Click, then navigate to the new code? Use case: I'm navigating huge amounts of code and I find that I scroll in the code (cursor position doesn't change), then see what I want, Ctrl+Click it. I then review the new code, and press Ctrl+H to go back to my previous position. Lazarus now jumps back to last cursor position, not the position I navigated from. So now I need to scroll again (sometimes 100's of lines of code) to find my place. 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] Bug? Form (in design mode) shrinks every time i click on a component in the palette
Ah yeah, i forgot to mention that the shrink is vertical only. On Fri, Apr 17, 2015 at 2:03 PM, Salvatore Coppola coppolastu...@gmail.com wrote: about 30 pixel recall me scrollbar width 2015-04-17 13:12 GMT+02:00 Kostas Michalopoulos badsectorac...@gmail.com : So i have this weird problem under Linux with the GTK2 backend (it doesn't happen in the Qt backend): every time i click on a component button in the palette, the designed form shrinks a bit (about 30 pixels or so). This happens in the stable 1.2 version, 1.4RC and trunk. Deleting ~/.lazarus etc doesn't fix it so it isn't a settings issue. I tried to debug it a bit by adding breakpoints in SetBounds, DoOnResize, etc but couldn't find where the resize request comes from (OnResize stuff comes from a WM message). What is even more weird, commenting out the OnClick code in the component palette so that it isn't handled at all, still causes it - i suspect some weird combination of GTK+ events might cause it since the buttons are still pressed. Although TBH this was mostly shooting blind trying to find some clue. The only thing i suspect is the window manager i'm using, Window Maker, might not support some of the more recent window hint/style/etc stuff (although i'm using the latest version and is in active development since a few years now). Steam also seems to have trouble with interacting with wmaker, but that one implements its own widgets and it might be a bug they didn't bother to fix. Every other program i've tried seems to work fine with wmaker so i'm not sure if it is that (and besides it works fine with the Qt backend). Does anyone have any idea what might cause this and how to fix it (no, replacing wmaker isn't an option :-P besides if it is a bug there i'll just fix wmaker)? -- ___ 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 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Impressive web development
Nah, for web development leave me with Vim and I'll be happy. El 14/04/15 a las 17:32, Graeme Geldenhuys escibió: Hi, I just came across this on Google+ - probably the most impressive web app I've ever seen. It is called Codenvy and is a fully functional zero-configuration integrated development environment. http://ow.ly/LBJUa Are we going to see such a web based Lazarus IDE soon? ;-) It should help stop all those FPC Lazarus installation issue support emails. :) Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Updating Cursor position on Ctrl+Click code navigation
On 17/04/2015 14:48, Graeme Geldenhuys wrote: Hi, Is there a way to tell Lazarus to move the current cursor to the location where I did a Ctrl+Click, then navigate to the new code? Yes there is (now) In Mouse options advanced, select text in the tree-view, then double click Source Link in the grid. A Window opens, and you can select Move Caret But it actually goes wrong. Because the jump is executed first. So it takes you back after the jump. You can see it works, if you jump to another unit, and then use the mouse to go to the previous tab. I fixed that in trunk (just now), so if you update this will work for you. But there will be no jump point to go back to the original pos. (the one a few 100's of lines away) Use case: I'm navigating huge amounts of code and I find that I scroll in the code (cursor position doesn't change), then see what I want, Ctrl+Click it. I then review the new code, and press Ctrl+H to go back to my previous position. Lazarus now jumps back to last cursor position, not the position I navigated from. So now I need to scroll again (sometimes 100's of lines of code) to find my place. Regards, - Graeme - -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Updating Cursor position on Ctrl+Click code navigation
On 2015-04-17 16:02, Martin Frb wrote: I fixed that in trunk (just now), so if you update this will work for you. Awesome, thank you very much. 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