lazarus/lcl/widgetset
sekelsenmat 78a6878d99 Fixes preferred size for TComboBox in gtk2.
git-svn-id: trunk@14059 -
2008-02-09 22:03:53 +00:00
..
README.txt fixed typos from Darius 2006-10-23 10:14:31 +00:00
wsactnlist.pp
wsarrow.pp added class keyword to proc bodies for fpc 2.1.1 2006-05-27 17:40:59 +00:00
wsbuttons.pp ImageList: 2007-11-08 08:36:03 +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 TCheckListBox.State property and support for grayed states: 2007-12-17 10:21:56 +00:00
wsclistbox.pp
wscomctrls.pp declared TListItem.Position, TListItem.Top, TListItem.Left with implementation for win32 (0008426) 2007-04-18 15:51:50 +00:00
wscontrols.pp Fixes preferred size for TComboBox in gtk2. 2008-02-09 22:03:53 +00:00
wsdbctrls.pp
wsdbgrids.pp
wsdesigner.pp gtk2: dont use hack to set itemindex for listbox with single selection (part of 0010682) 2008-01-26 11:06:06 +00:00
wsdialogs.pp lcl wsdialogs: use LCLType to have a 64 bits THandle on 64 bits cpus from Giulio Bernardi 2006-11-26 19:19:22 +00:00
wsdirsel.pp
wseditbtn.pp
wsextctrls.pp Started moving TPopupNotifier to the LCL. Added linux script to create images lrs file. Implemented TTrayIcon.GetPosition on gtk2. 2008-02-09 10:24:40 +00:00
wsextdlgs.pp
wsfilectrl.pp
wsforms.pp forgotten files + cleanup 2007-09-03 08:04:01 +00:00
wsgrids.pp
wsimglist.pp * Start handle rework. Splitup of internal WS referencedata and public widgetsetspecific references (handle/pointer/XID/...) 2007-12-06 01:17:52 +00:00
wslclclasses.pp * forgot to checkin most importent part for r13663 #a174b6e889 2008-01-09 19:30:35 +00:00
wsmaskedit.pp
wsmenus.pp Qt: menu rework (also fixed issue with destroying menu items - they had not destroyed their handles) 2007-09-24 06:03:19 +00:00
wspairsplitter.pp - little behavior adjusting for non gtk pairsplitter 2007-05-29 15:05:25 +00:00
wsproc.pp * Start handle rework. Splitup of internal WS referencedata and public widgetsetspecific references (handle/pointer/XID/...) 2007-12-06 01:17:52 +00:00
wsreferences.pp fix problems with 64bit linux and new handle rework 2007-12-14 12:59:50 +00:00
wsspin.pp LCL: - derived T(Float)SpinEdit from TCustomEdit to remove redundant code 2007-05-26 09:57:11 +00:00
wsstdctrls.pp TStaticText: 2007-11-06 09:17:41 +00:00
wstoolwin.pp

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