Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming

TStatusBar - Delphi Usage Examples, Tips and Tricks

Delphi's TStatusBar control displays a row of panels, usually aligned at the bottom of a form. Status bar can be used to display various "status" messages in an application. Learn how to use the status bar control in Delphi programs.
Placing a TProgressBar into a TStatusBar
Here's how to add a status bar (or any other Delphi component) to a progress bar. Provide visual feedback of application's lengthy operation in the status area of a Delphi form.
Drawing on a TStatusBar Panel: Back Color, Font Color, Graphics
To have a more eye-caching user friendly interface you might want to decide to add graphics, change the color and the font style of a StatusBar Panel.
Implementing the OnClick event for a Panel on a TStatusBar Delphi cont
Unfortunatelly, there's no Panel Click exposed by the TStatusBar event to be fired when a particular Status Panel is clicked. Here's the code to simulate the OnStatusPanelClick event.
Select Which Panel Displays AutoHint in TStatusBar
If you want the current hint to be displayed in some other panel, as needed per your application design (something else displayed in the first panel) you might want to display auto hints in some other panel of a status bar.
Display Custom Hints for Status Bar Panels
What does not come out of the box is the possibility to have each panel on a status bar display its own hint (tooltip) when the mouse "stops" over a panel on a status bar.
TMemoBar - TMemo extender
Full source code of the MemoBar Delphi component. MemoBar can be attached to a T(Custom)Memo component to provide additional info/functionality for a Memo component.

Explore Delphi Programming

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Delphi Programming

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Using VCL Components
  5. TStatusBar

©2009 About.com, a part of The New York Times Company.

All rights reserved.