lazarus/lcl/widgetset
ondrej 9a9e336851 LCL: combo box: deprecate ReadOnly property
git-svn-id: trunk@55243 -
2017-06-05 19:07:31 +00:00
..
README.txt
wsbuttons.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wscalendar.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wschecklst.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wscomctrls.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wscontrols.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsdesigner.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsdialogs.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsextctrls.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsextdlgs.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsfactory.pas LCL: Remove arrow from widgetsets. 2015-06-05 17:11:00 +00:00
wsforms.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsgrids.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsimglist.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wslazdeviceapis.pas Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wslclclasses.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsmenus.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wspairsplitter.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsproc.pp LCL: Implement TCustomMemo.ScrollBy. Refactor widgetset ScrollBy from ScrollingWinControl to WinControl. Solves issue #29067. 2015-11-29 18:45:53 +00:00
wsreferences.pp Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already. 2013-05-24 18:30:06 +00:00
wsspin.pp Reverts changes to the handling of vclass due to issues in gtk2 2017-06-01 19:36:16 +00:00
wsstdctrls.pp LCL: combo box: deprecate ReadOnly property 2017-06-05 19:07:31 +00:00
wstoolwin.pp Improve license headers in sources, part 1. Refer to details about license, not copyright. Remove jargon about lack of warranty, it is covered in license already. 2013-05-24 18:30:06 +00:00

This directory contains all skeleton widget set component 
classes. These classes will never get instantiated and may 
only contain class functions.
  
=========  
IMPORTANT
=========  

Derivation and inheritance of classes is different then one
might be used to. It will be explained by the following 
examples.

Suppose the following LCL class hierarchy:

 TLCLComponent
     |
  TControl
     |
 TWinControl
 
the corresponding WS skeleton would be

 TWSLCLComponent
      |
  TWSControl
      |
 TWSWinControl


When method X of TWSControl gets implemented by 
widgetset Q the hierarchy looks like

 TWSLCLComponent
      |
  TWSControl.X --> TQWSControl.X
      |
 TWSWinControl


Calling TWSWinControl.X doesn't call TQWSControl.X since
it's parent is TWSControl. This problem is solved by 
modifying the class hierarchy at runtime.
When a component class is registered by RegisterWSComponent,
the class is copied and the vmt entries are adjusted so 
that the hierarchy looks like:


 TWSLCLComponent
      |
  TWSControl.X --> TQWSControl.X
                        |
                   TWSWinControl

In this case, calling TWSWinControl.X will call the overridden 
TQWSControl.X. The only thing which doesn't get handled is the 
inherited statement. Suppose there is also a TQWSWinControl.X 
which implements a few extra steps. In a normal situation one 
would have called "inherited". The call to inherited is
resolved at compile time and would in this example to a call to
TWSControl.X. That is not what we want.
To get around this, call the parent yourself:
  TWSWinControlClass(ClassParent).X