Re: How do I color in a subfield on a status bar?
- Posted by Andrew Katz <Akatz712 at gmail.com> Mar 13, 2007
- 526 views
CChris wrote: > ......... > > 1/ Painting to a status bar: just paint a rectangle at the right client > coordinates in the status bar. The fields are not like child windows. > Don't forget to draw a slightly deflated rectangle, so that the field > borders are still visible. > > 2/ Indeed, your fix for wPuts() addresses the problem. The problem was that, > when the text is given as {{text_addr,text_length}}, the lib attempts > to compute the length of text_length, which duly fails. > > 3/ You need to add the SBT_TOOLTIPS style flag to the status bar for it to > respond to setHint[Ex](). > > CChris 1 - I did exactly this. But when I placed the code into my parent window in the general section it did not show. So, does this belong in the onpaint for the statusbar? 2 - I was given credit for this fix. See the forum. 3 - placing the SBT_TOOLTIPS did not do anything. Where exactly do I place it in the IDE?