How to display an icon on the TStatusBar in C++Builder?

How to display an icon (TBitmap or one image from TImageList and the like) on the TStatusBar in C++Builder? We tried to use method PaintTo of TStatusBar, but not successful.

Who is Participating?
timopConnect With a Mentor Commented:
You must handle the event OnDrawPanel.
OnDrawPanel occurs only if the status panel's Style property is set to psOwnerDraw.

For example, to display an image from TImageList, call ImageList.Draw( StatusBar.Canvas, … ) from the OnDrawPanel  event handler.

Just try to change the bg bitmap permanently for the status window..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.