Sign in Join
FPDoc Onlineexperiment

TStatusBar.LMDrawItem procedure

Member of TStatusBarprotectedIn unit ComCtrls

Draws the status bar panel when the specified LM_DRAWITEMS message is handled for the control.

Declaration

pascal
procedure LMDrawItem(var Message: TLMDrawItems); message

Arguments

Message

Message with the status bar panel and coordinates drawn in the method.

Description

LMDrawItem is a method used to handle a TLMDrawItems message received for the status bar control. LMDrawItem retrieves the status bar panel (by item position) and the rectangle where it is drawn from the drawing structure in the Message argument. It ensures that the handle for the control Canvas is set to the device context for the control and calls DrawPanel to render the status bar panel at the required coordinates. The Canvas handle is restored to its original value prior to exit.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.