Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 2018-02-11 09:34, Ondrej Pokorny via Lazarus wrote: Does fpGUI support DPI on per-monitor basis? I.e. I have a high-DPI laptop screen and a normal DPI external monitor connected to it - and I work on both of them. Last time I tested (granted that was a while back), the fpGUI application detects the DPI of the monitor it is launched on. I can't remember what happens when you drag that application from one monitor to another (where they have varying dpi values). [Nothing related to fpGUI] I do know that Windows 10 is seriously broken in this regard. At least I think it is broken, or the implementation is seriously sh*t. eg: Take an application like Delphi XE3 and launch it on a 140+ dpi monitor. Open a debug window (or any non-docked IDE window). Drag that window to the 96dpi monitor. Boom, you have the over-scaled fuzzy looking window. Even dragging a single window application so that just over 50% of the window appears on the 96dpi monitor, and the same thing happens. Less than 50% overlap, and all is well. WTF Microsoft!!! I've got this issue at work every day. To alleviate the problem slightly, I have to change the "default monitor" to the lower dpi monitor. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 10.02.2018 18:51, Graeme Geldenhuys via Lazarus wrote: On 2018-02-10 16:31, Ondrej Pokorny via Lazarus wrote: What is missing in LCL-fpGUI binding: TMonitor.PixelsPerInch. In fpGUI, you can grab that information from the global fpgApplication instance. That has been around for years, so both the 'maint' and 'develop' branches have it. function Screen_dpi_x: integer; function Screen_dpi_y: integer; function Screen_dpi: integer; Does fpGUI support DPI on per-monitor basis? I.e. I have a high-DPI laptop screen and a normal DPI external monitor connected to it - and I work on both of them. LCL-fpGUI probably only needs the last one. I don't believe non-X11 platforms (eg: Windows) support varying dpi on the x and y axis. LCL scaling doesn't support varying x/y dpi either. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
El 10/02/2018 a las 18:51, Graeme Geldenhuys via Lazarus escribió: function Screen_dpi: integer; LCL-fpGUI probably only needs the last one. I don't believe non-X11 platforms (eg: Windows) support varying dpi on the x and y axis. Hello, Yes that's the needed value, is the binding which is missing, not detected as I'm not using scaled applications. It will be added in the next LCL-fpGUI update. -- -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 2018-02-10 16:31, Ondrej Pokorny via Lazarus wrote: Yes, sorry. I wasn't exact: LCL-fpGUI doesn't support it yet. The same goes for the develop branch, unfortunately: LCL-fpGUI cannot be compiled with it. No worries, just checking if I understood what you meant. What is missing in LCL-fpGUI binding: TMonitor.PixelsPerInch. In fpGUI, you can grab that information from the global fpgApplication instance. That has been around for years, so both the 'maint' and 'develop' branches have it. functionScreen_dpi_x: integer; functionScreen_dpi_y: integer; functionScreen_dpi: integer; LCL-fpGUI probably only needs the last one. I don't believe non-X11 platforms (eg: Windows) support varying dpi on the x and y axis. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 10.02.2018 16:43, Graeme Geldenhuys via Lazarus wrote: On 2018-02-10 09:42, Ondrej Pokorny via Lazarus wrote: Disable Application.Scaled - fpGUI doesn't support it yet. Is that for multi-DPI aware applications? If so, at least in the fpGUI 'develop' branch there is built-in support for multi-DPI. So LCL-fpGUI might be able to hook into that functionality. Yes, sorry. I wasn't exact: LCL-fpGUI doesn't support it yet. The same goes for the develop branch, unfortunately: LCL-fpGUI cannot be compiled with it. What is missing in LCL-fpGUI binding: TMonitor.PixelsPerInch. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 2018-02-10 09:42, Ondrej Pokorny via Lazarus wrote: Disable Application.Scaled - fpGUI doesn't support it yet. Is that for multi-DPI aware applications? If so, at least in the fpGUI 'develop' branch there is built-in support for multi-DPI. So LCL-fpGUI might be able to hook into that functionality. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
2018. 02. 10. 10:42 keltezéssel, Ondrej Pokorny via Lazarus írta: Disable Application.Scaled - fpGUI doesn't support it yet. Works now! Thank you! Gabor -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus
Re: [Lazarus] LCL-fpGUI - SIGSEGV
On 10.02.2018 10:30, Gabor Boros via Lazarus wrote: Hi All, I want to try LCL-fpGUI. Followed the instructions from the below wiki page, a new project compiled successfully but got error at application start. If start from the IDE got SIGSEGV, if start from command line got "Access violation". I used Lazarus trunk (57276) and fpGUI's maint branch. http://wiki.freepascal.org/fpGUI_Interface Disable Application.Scaled - fpGUI doesn't support it yet. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus-ide.org https://lists.lazarus-ide.org/listinfo/lazarus