Re: [Lazarus] LCL customdraw and LCL fpGUI bug

2019-05-03 Thread Graeme Geldenhuys via lazarus
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
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus


[Lazarus] FHandle causes AV in TMonitor.GetPixelsPerInch()

2019-05-03 Thread Graeme Geldenhuys via lazarus
I'm debugging the issue reported about LCL-CustomDraw and lcl-fpgui
causing an AV at application start up.

I traced the issue back to TMonitor.GetPixelsPerInch() which is called
in TCustomForm.AfterConstruction(). As soon as GetPixelsPerInch() tries
to reference FHandle in any way, it throws an AV. Anybody got some hints
as to why both custom drawn widgetsets have this issue?


Would it be some window handle allocation timing issue for custom drawn
widgetest? ie: The handles are allocated later that other non Object
Pascal based widgetsets?

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 customdraw and LCL fpGUI bug

2019-05-03 Thread Graeme Geldenhuys via lazarus
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
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus