mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-05 01:08:12 +02:00
.. | ||
project1.lpi | ||
project1.lpr | ||
Readme.txt | ||
ReSizeImageDemo.ex-meta | ||
unit1.lfm | ||
unit1.pas |
Resizing Example LCL demo of redraw event order for images, panels and forms that should work for all widget sets eg Windows, qt, OSX, GTK etc. ClientWidth and ClientHeight rather than Width and Height are used so that the code works across widget sets eg Windows, qt, OSX, GTK etc because Height and Width do not allow for widget set and theme borders. Checkboxes are used to call procedures for each of the redraw events. Each procedure writes to the canvas. They overwrite each other as they are called and the firing order is shown in a memo. Repaint or Invalidate are not needed for resizing events.