Unit 'ComCtrls' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#lcl]

TStatusBar.LMDrawItem

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

Declaration

Source position: comctrls.pp line 160

protected procedure TStatusBar.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

TStatusBar.Canvas

  

The Canvas where the Panels for the StatusBar are painted.

TStatusBar.DrawPanel

  

Signals the OnDrawPanel event handler (when assigned).

TLMDrawItems

  



CT Web help

CodeTyphon Studio