Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2019-05

LCL customdraw and LCL fpGUI bug

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Fabio Luis Girardi

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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190501/5241875d/attachment.html>

Reply by email

Graeme Geldenhuys
to Fabio Luis Girardi
Fabio Luis Girardi wrote 5 lines
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

Reply by email

Graeme Geldenhuys
to Fabio Luis Girardi: Hi! I'm trying to test some features on LCL CustomDraw and fpGUI. CustomDraw compiles…
Fabio Luis Girardi 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

Reply by email

Fabio Luis Girardi
to Graeme Geldenhuys

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 <

Show quoted text 39 lines
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 https://lists.lazarus-ide.org/listinfo/lazarus
The best regards, Fabio Luis Girardi PascalSCADA Project http://sourceforge.net/projects/pascalscada http://www.pascalscada.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20190506/20277d70/attachment.html>

Reply by email