Difference between revisions of "Lazarus Custom Drawn Package"

From Free Pascal wiki
Jump to navigationJump to search
(Extended information about the customdrawn package based on information from Felipe)
Line 1: Line 1:
 
==About==
 
==About==
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. Read more about it in [[Lazarus Custom Drawn Controls]].
 
 
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==
 
==Advantages==
Line 11: Line 6:
 
* Customizable look (skinnable in a reliable and cross-platform way)
 
* 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.
 
* 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.
 +
* They can be utilized in LCL interfaces if the native controls are too unreliable or if no native control exists or if the native controls cannot be used in a convinient way (because they are written in Java, for example)
  
 
==TBitmappedButton==
 
==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.
 
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.
 +
 +
Location of the code in Lazarus: http://svn.freepascal.org/cgi-bin/viewvc.cgi/trunk/components/customdrawn/customdrawnextras.pas?view=markup&root=lazarus
  
 
==Maintainers==
 
==Maintainers==

Revision as of 11:35, 17 November 2010

About

The package customdrawn.lpk is an under construction package containing all kinds of custom drawn components for Lazarus. Read more about it in Lazarus Custom Drawn Controls.

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.
  • They can be utilized in LCL interfaces if the native controls are too unreliable or if no native control exists or if the native controls cannot be used in a convinient way (because they are written in Java, for example)

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.

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

Maintainers

See Also