1. Home
  2. Computing & Technology
  3. Delphi Programming
Zarko Gajic
Zarko's Delphi Programming Blog

By Zarko Gajic, About.com Guide to Delphi Programming

Implementing the OnClick Event for a Panel on a TStatusBar Delphi control

Thursday November 5, 2009

in Using Delphi VCL ::
Delphi's TStatusBar control displays a row of panels, usually aligned at the bottom of a form. The Panels property of the TStatusBar control is a collection of TStatusPanel objects.

The TStatusBar exposes the OnClick event that gets fired when the user clicks the control.

Unfortunatelly, there's no "Panel Click" event to be fired when a particular Status Panel is clicked.

Read the full article to learn how to know what StatusBar Panel was Clicked

Related: Placing a TProgressBar into a TStatusBar | Get the Url of a Hyperlink when the Mouse moves | TMemoBar - T(Custom)Memo extender Delphi component

Comments
January 17, 2007 at 4:28 pm
(1) nello48 says:

thank
it is a great idea and i have found the
metod to use in my application.

it is possible add Tcolor to single
panel ?
thank

January 21, 2007 at 1:54 pm
(2) Zarko Gajic says:

Here’s how to apply custom coloring (and more) for a status bar panel:

http://delphi.about.com/od/vclusing/a/statusbar_owner.htm

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore Delphi Programming
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

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

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

All rights reserved.