Difference between revisions of "Lazarus Custom Drawn Controls"

From Lazarus wiki
Jump to navigationJump to search
Line 8: Line 8:
  
 
==Custom Drawn Packages==
 
==Custom Drawn Packages==
 +
 +
Current location in the code: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/customdrawn/customdrawnextras.pas?view=markup&root=lazarus
  
 
===TBitmappedButton===
 
===TBitmappedButton===
  
 
This control allows the easy creation of buttons based on images, which is very often used in games.
 
This control allows the easy creation of buttons based on images, which is very often used in games.
 +
 +
Location of the code in Lazarus: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/customdrawn/customdrawnextras.pas?view=markup&root=lazarus

Revision as of 17:27, 5 November 2010

The Lazarus Custom Drawn Controls are a set of controls equivalent to the standard Lazarus controls, but which draw themselves. They can have many uses, including the hability to fully customize the drawing, the hability to have exactly the same look in different platforms and also a higher consistency of behavior.

This set of controls is divided into two parts: The custom drawn controls which are useful for implementing Lazarus widgetsets and are located in the unit lazarus/lcl/customdrawncontrols.pas, and all other custom drawn controls, which are used often, but aren't indispensable to implement a LCL custom drawn widgetset. Those are located in the package lazarus/components/customdrawn.

Custom Drawn Controls in the LCL

TCDGroupBox

Custom Drawn Packages

Current location in the code: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/customdrawn/customdrawnextras.pas?view=markup&root=lazarus

TBitmappedButton

This control allows the easy creation of buttons based on images, which is very often used in games.

Location of the code in Lazarus: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/customdrawn/customdrawnextras.pas?view=markup&root=lazarus