lazarus/examples/ReSizeImageDemo
maxim 0d9d5836a6 Merged revision(s) 56223 #748967367b, 56225-56228 #e96879b669-#e96879b669 from trunk:
examples/treeview: Use default font (instead of MS SansSerif)
........
examples/ResizeImageDemo: remove unit Windows from "uses".
........
examples/dbeditmask: Fix crash due to incorrect dateseparator in some countries. Use default font instead of MS SansSerif.
........
examples/componentstreaming: Preving explaining labels reaching beyond form borders.
........
Examples/synedit1: Fix compilation issue
........

git-svn-id: branches/fixes_1_8@56245 -
2017-10-30 21:39:04 +00:00
..
project1.lpi Merged revision(s) 56223 #748967367b, 56225-56228 #e96879b669-#e96879b669 from trunk: 2017-10-30 21:39:04 +00:00
project1.lpr
Readme.txt Readme file for ResizeImageDemo Example from Mike Sapsard. Issue #27592. 2016-11-23 10:54:42 +00:00
unit1.lfm Merged revision(s) 56223 #748967367b, 56225-56228 #e96879b669-#e96879b669 from trunk: 2017-10-30 21:39:04 +00:00
unit1.pas Merged revision(s) 56223 #748967367b, 56225-56228 #e96879b669-#e96879b669 from trunk: 2017-10-30 21:39:04 +00:00

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.