lazarus/lcl/widgetset
paul c363b5fff8 gtk2: fix item exchange (bug #0013081)
git-svn-id: trunk@18809 -
2009-02-23 13:48:46 +00:00
..
README.txt
wsactnlist.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsarrow.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsbuttons.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wscalendar.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wschecklst.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wscomctrls.pp gtk2: fix item exchange (bug #0013081) 2009-02-23 13:48:46 +00:00
wscontrols.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsdbctrls.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsdbgrids.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsdesigner.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsdialogs.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsdirsel.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wseditbtn.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsextctrls.pp Patch from Yury Sidorov. Adds native ballonhint to trayicon in win32/64 2009-01-10 18:12:28 +00:00
wsextdlgs.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsfilectrl.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsforms.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsgrids.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsimglist.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wslclclasses.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsmaskedit.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsmenus.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wspairsplitter.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsproc.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsreferences.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsspin.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +00:00
wsstdctrls.pp lcl: formatting 2009-02-04 08:03:37 +00:00
wstoolwin.pp widgetset: make WS classes method explicitly published 2008-11-25 02:29:28 +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