Skip to main content

TdxBarStatic Example

During lengthy operations, such as locating a record in a large database, you might wish to display a wait cursor to the user. The following code shows a way to use a TdxBarStatic for this purpose.

var
  OldCaption : string;
// ...
begin
// ...
  OldCaption := dxBarStatic1.Caption;
  dxBarStatic1.Caption := 'Search in progress ...';
  {locates the record}
  {restores the caption}
  dxBarStatic1.Caption := OldCaption;
// ...
end;