Difference between revisions of "Lazarus Custom Drawn Package"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
The package customdrawn.lpk is an under construction package containing all kinds of custom drawn components for Lazarus.
 
The package customdrawn.lpk is an under construction package containing all kinds of custom drawn components for Lazarus.
 +
 +
They can be used if there is no good native component provided by the widget set.
 +
The custom drawn components could be used for a (future) android interface.
 +
 +
The Windows CE interface might as well benefit from it, specially for TCDGroupBox.
 +
 +
==Advantages==
 +
* Can be fully reliable in look, behavior and size across platforms
 +
* Customizable look (skinnable in a reliable and cross-platform way)
 +
* Ability to mix native and custom drawn controls. This is major difference with with using [fpGUI] or the [fpGUI Interface]: it can't mix native and ownerdrawn (fpgui) components in one application.
  
 
==TBitmappedButton==
 
==TBitmappedButton==

Revision as of 11:09, 17 November 2010

The package customdrawn.lpk is an under construction package containing all kinds of custom drawn components for Lazarus.

They can be used if there is no good native component provided by the widget set. The custom drawn components could be used for a (future) android interface.

The Windows CE interface might as well benefit from it, specially for TCDGroupBox.

Advantages

  • Can be fully reliable in look, behavior and size across platforms
  • Customizable look (skinnable in a reliable and cross-platform way)
  • Ability to mix native and custom drawn controls. This is major difference with with using [fpGUI] or the [fpGUI Interface]: it can't mix native and ownerdrawn (fpgui) components in one application.

TBitmappedButton

The control helps implementing an user interface which has buttons with an unusual look, such as is often found in games. The appearance of the button is defined by a set of raster images which are displayed for each state of the button, such as normal, focused, down.

See Also