[Lazarus] LCL customdraw and LCL fpGUI bug

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Lazarus] LCL customdraw and LCL fpGUI bug

Free Pascal - Lazarus mailing list
Hi!

I'm trying to test some features on LCL CustomDraw and fpGUI. CustomDraw compiles fine, fpGUI needs some fixes, but this isn't the problem.

The problem is that both raises RunError 216 on file monitor.inc:34, on function:
function TMonitor.GetPixelsPerInch: Integer;

Tried with Lazarus fixes 2.0.3 with FPC 3.2.0 

Did I forget anything? Should I report a bug?

--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] LCL customdraw and LCL fpGUI bug

Free Pascal - Lazarus mailing list
On 02/05/2019 03:13, Fabio Luis Girardi via lazarus wrote:
> function TMonitor.GetPixelsPerInch: Integer;
>
> Tried with Lazarus fixes 2.0.3 with FPC 3.2.0
>
> Did I forget anything? Should I report a bug?


fpGUI already has that information. I'll take a look at LCL-fpGUI and
supply a patch if needed for that.

I'll also take a look at the other LCL-fpGUI issues you said appears.
The LCL-fpGUI really needs a dedicated developer to get it out of
alpha/beta stage.

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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] LCL customdraw and LCL fpGUI bug

Free Pascal - Lazarus mailing list
In reply to this post by Free Pascal - Lazarus mailing list
On 02/05/2019 03:13, Fabio Luis Girardi via lazarus wrote:
> LCL-fpGUI needs some fixes


I've just submitted a set of 11 patches for LCL-fpGUI:

   https://bugs.freepascal.org/view.php?id=35478


TLabel finally works. :-)


Unfortunately the TMonitor.GetPixelsPerInch() issue is still not fixed.
I manually commented out the code...

  if WidgetSet.GetDpiForMonitor(FHandle, MDT_EFFECTIVE_DPI, X, Y)=S_OK then
   ...
  else

and only left the "Result = Screen.PixelsPerInch;" call in place. If you
didn't guess, it is a temporary fix. ;-)


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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus
Reply | Threaded
Open this post in threaded view
|

Re: [Lazarus] LCL customdraw and LCL fpGUI bug

Free Pascal - Lazarus mailing list
I'll try apply your patch to Lazarus fixes. 

If something goes wrong I'll let you know.

Em sex, 3 de mai de 2019 às 11:56, Graeme Geldenhuys via lazarus <[hidden email]> escreveu:
On 02/05/2019 03:13, Fabio Luis Girardi via lazarus wrote:
> LCL-fpGUI needs some fixes


I've just submitted a set of 11 patches for LCL-fpGUI:

   https://bugs.freepascal.org/view.php?id=35478


TLabel finally works. :-)


Unfortunately the TMonitor.GetPixelsPerInch() issue is still not fixed.
I manually commented out the code...

  if WidgetSet.GetDpiForMonitor(FHandle, MDT_EFFECTIVE_DPI, X, Y)=S_OK then
   ...
  else

and only left the "Result = Screen.PixelsPerInch;" call in place. If you
didn't guess, it is a temporary fix. ;-)


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
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus


--
The best regards,

Fabio Luis Girardi
PascalSCADA Project
http://sourceforge.net/projects/pascalscada
http://www.pascalscada.com

--
_______________________________________________
lazarus mailing list
[hidden email]
https://lists.lazarus-ide.org/listinfo/lazarus