lazarus/lcl/widgetset
mattias 245402981f renamed README files to README.txt
git-svn-id: trunk@9657 -
2006-07-21 18:31:15 +00:00
..
README.txt renamed README files to README.txt 2006-07-21 18:31:15 +00:00
wsactnlist.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsarrow.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsbuttons.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wscalendar.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wschecklst.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsclistbox.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wscomctrls.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wscontrols.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsdbctrls.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsdbgrids.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsdialogs.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsdirsel.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wseditbtn.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsextctrls.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsextdlgs.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsfilectrl.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsforms.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsgrids.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsimglist.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wslclclasses.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsmaskedit.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsmenus.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wspairsplitter.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsproc.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00
wsspin.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsstdctrls.pp add wanttabs property to tcustommemo to disable grabbing of tab key; compatibility (issue #1811) 2006-07-06 15:23:01 +00:00
wstoolwin.pp fixed references to COPYING.LCL 2006-05-05 05:52:08 +00:00

This directory contains all sceleton widgetset 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 wil 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 ComponentClass 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 overriden 
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 compiletime 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