Re: How do I color in a subfield on a status bar?
Derek Parnell wrote:
>
> 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
I tried this rectangle, but it erased the rest of the status bar, and I cannot
even address subfields in it any longer.
I cannot use an icon since the purpose is to show a selected color by the
user (yet to be coded).
The owner draw idea sounds interesting. But boy do I think of things which
cannot be done easily. But then again the whole purpose of what I am doing
is to learn as much as possible.
But before I do an owner draw, I prefer to find out if I really cannot do it.
Also, more important to me is to see the subfields tool tips working, since
that is documented as working. Please explain how.
Thanks.
Andy Katz
|
Not Categorized, Please Help
|
|