RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomStatusBar.ExecuteAction Method

Processes actions for the status bar.

Pascal
function ExecuteAction(Action: TBasicAction): Boolean; override;
C++
virtual __fastcall Boolean ExecuteAction(TBasicAction Action);

When an action executes, the application makes a series of calls to respond to that action. If, in the course of that processing, the application identifies the status bar as a potential target of the action, it calls the status bar's ExecuteAction method. 

If the action in a hint action (THintAction), ExecuteAction checks the AutoHint property, and if it is true, displays the hint and returns true. Otherwise, it allows the inherited method to respond to any other actions. 

The Action parameter specifies the action that was invoked.  

ExecuteAction returns true if the action was successfully dispatched, and false if the component could not handle the action. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!