Hi Paul
I asked a question recently on this NG, which also directed me to using the
StatusBar control for the first time.
The thing which had me stuck for a while, was that I couldn't work out how
to actually get the bar onto the form. My toolbar didn't have a StatusBar on
it, and all the documentation didn't explain where to find it (does mention
a file name, but that's it).
Eventually I found that you have to right click on the toolbar, choose
Controls, and tick "Microsoft Windows Common Controls 6.0"
To add the properties, styles etc mentioned in the previous messages, drag
the bar onto the form, right click on it, and choose properties. Using F4
like all the other objects on the form won't alow you to edit the properties
you need to.
HTH
Philip.
Quote:
> Going further, of particular interest:
> 1. If you set the style to 'Simple', you have only one panel and
> populate it with the 'SimpleText' property - very quick and neat!
> 2. If you make the style 'normal' and work with the Panels collection,
> it is handy to treat one of the panels (often a 'middle' one) as your
> default or catch-all panel - in form_resize, make its width the
> difference between the control width and the sum of the widths of the
> other panels so your right-side panels are always aligned on the right.
> 3. Often it is discovered far down the road that an additional panel
> would be nice but because we have hardcoded panel(1), panel(2) so many
> times it is a bother to put it in; best is to use the 'key' feature from
> the get-go, even if you see no possibility of 'enhancement'.
> 4. Each panel has a style, among those available being date and time.
> I recently encountered an app where the fellow used a timer and a block
> of code to maintain a clock on the status bar because he didn't realize
> that functionality was built-in.
> 5. Proceeding from 4: read up thoroughly on the control - invest now
> and reap the benefits for eternity!
--
____________________________________________________
Philip Johns
03 5561 5383 (w)
5561 3586 (h)
5561 5384 (fax)
____________________________________________________