Re: How do I color in a subfield on a status bar?
- Posted by Derek Parnell <ddparnell at bigpond.com> Mar 13, 2007
- 537 views
Andrew Katz wrote: > > I want to be able to address a particular subfield on the status bar, and > write to it a rectangular box of my color. There are three ways to do this. (1) Calculate the location in the status bar where you want the rectanlge to go and use the drawRectangle routine on the statusbar's paint event to place it. (2) Create a OWNERDRAWN status bar. This means that you have total control over what gets placed where in the status bar. But this is not so easy to do. (3) Use an icon. VOID = sendMessage(mySB, SB_SETICON, iPart, hIcon ) where mySB is the ID of the status bar, iPart is a zero based index into which sub field to use, hIcon is the handle of an ICON you have loaded from a file -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell