lazarus/lcl/widgetset
mattias da78e6e7a4 implemented TSplitter.Beveled for gtk intf
git-svn-id: trunk@8031 -
2005-11-02 09:10:52 +00:00
..
README Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsactnlist.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsarrow.pp convert LM_SETVALUE message to interface methods 2004-09-19 18:50:28 +00:00
wsbuttons.pp implement active default control switching 2005-04-17 18:41:15 +00:00
wscalendar.pp renamed TWSCalendar to TWSCustomCalendar, fix using TTICalendar (bug #1203) 2005-09-25 19:40:03 +00:00
wschecklst.pp added gtk handler for TCheckListBox item check change 2005-08-29 10:35:25 +00:00
wsclistbox.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wscomctrls.pp added ldocktree.pas 2005-07-01 18:20:41 +00:00
wscontrols.pp * Modified patch from Andrew for MouseMove and MouseUp messages 2005-10-12 22:22:02 +00:00
wsdbctrls.pp renamed TWSCalendar to TWSCustomCalendar, fix using TTICalendar (bug #1203) 2005-09-25 19:40:03 +00:00
wsdbgrids.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsdialogs.pp convert LM_CREATE message to interface methods 2004-09-24 21:34:14 +00:00
wsdirsel.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wseditbtn.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsextctrls.pp implemented TSplitter.Beveled for gtk intf 2005-11-02 09:10:52 +00:00
wsextdlgs.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsfilectrl.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsforms.pp * Reimplemented ZOrder 2005-07-16 00:08:26 +00:00
wsgrids.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsimglist.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wslclclasses.pp * made Widgetsetclass and wsprivate public 2005-10-03 21:24:38 +00:00
wsmaskedit.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsmenus.pp moved some menu intf methods to the TXXXWSMenuItem class from Martin Smat 2005-07-01 12:07:50 +00:00
wspairsplitter.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +00:00
wsproc.pp + Added WSBitBtn interface 2004-05-16 23:24:41 +00:00
wsspin.pp renamed TSpinEdit to TFloatSpinEdit and added new TSpinEdit with integers 2005-09-22 08:59:42 +00:00
wsstdctrls.pp added TComboBox.ReadOnly - only partially working under gtk1 2005-08-22 19:02:06 +00:00
wstoolwin.pp Modified WS class hierarchy on registration 2004-05-01 16:50:57 +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