[pathes] a set of 11 patches fixing and implementing various stuff in lcl-fpgui widgetset
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
I've been working on the lcl-fpgui widgetset and implemented and fixed various parts (excluding one issue listed below):
Changes include:
fpgui: fixes compilation error due to Graph unit in uses clause.
fpgui: Extend AppInit() implementation to set correct screen DPI
values.
fpgui: Implement TButton.Default behaviour.
fpgui: fixes compilation error. Wrong number of parameters for
GetImageIndexAndEffect() call.
fpgui: Fix painting of Canvas.Polygon() calls.
fpgui: Disable compiler define which causes writeln() IO errors under
Windows.
fpgui: fully implement DCGetPixel()
fpgui: Updated README file with latest information.
fpgui: Updated Makefile.fpc (please regenerate with fpcmake
afterwards)
fpgui: Fix Canvas.BeginDraw() call in DeviceContext class + extra
check added.
fpgui: Fixes the issue of using TLabel components with LCL-fpGUI.
lcl/interfaces/fpgui/Makefile.fpc | 9 ++++++---
lcl/interfaces/fpgui/README.txt | 13 +++++++------
lcl/interfaces/fpgui/fpguiint.pp | 4 ++--
lcl/interfaces/fpgui/fpguiobject.inc | 19 +++++++++----------
lcl/interfaces/fpgui/fpguiobjects.pas | 11 ++++++++---
lcl/interfaces/fpgui/fpguiproc.pas | 15 ++++++++++-----
lcl/interfaces/fpgui/fpguiwinapi.inc | 2 +-
lcl/interfaces/fpgui/fpguiwsbuttons.pp | 12 +++++++++---
lcl/interfaces/fpgui/fpguiwsforms.pp | 7 ++++---
lcl/interfaces/fpgui/fpguiwsstdctrls.pp | 6 ++++++
10 files changed, 62 insertions(+), 36 deletions(-)
The one issue I haven't managed to fix yet is what I reported in the mailing list. An AV at application startup. The AV occurs inside TMonitor.GetPixelsPerInch() and relates to the FHandle variable. I had to locally comment out the call to check for per-monitor DPI values, and only use the Screen dpi. That's the only way I could work on the changes listed above.