home *** CD-ROM | disk | FTP | other *** search
- Here is real nice custom control status bar. It allows you to create
- a status bar similar to those seen in qcwin, excel, winword etc.
-
- You build a status bar in sections. Each section can have its own set
- of properties (I'll get into the properties in a sec). You can have
- as many status bars on a form as you like/will fit. The bars
- themselves are "glued" to the bottom of the screen at run time and
- will also automatically "glue" to the bottom at design time when you
- size the form.
-
- I tried to make this thing look and act just like the status bars
- that we have all seen in other apps. When the user sizes the form the
- bar is glued to the bottom. If the user stretches the form, the
- first section of the bar grows/shrinks and the others are flushed
- right. (It's kinda hard to explain in writing here, so just play with
- the example and it'll be clear).
-
- As for the properties, here are some of the hightlights.
-
- 1. Toggle Keys.
- This property allows for automatic detection and
- display of caps lock, num lock, scroll lock and insert/overwrite
- keys. Just select which key you want and it will be displayed in the
- bar that the property was set in. All toggle keys except the insert
- key are system wide, so even if you hit the caps lock in another app,
- it will be updated automatically. The insert key is application
- dependent and therefore can be different in different applications.
-
- 2. Drawing Mode
- You can display your status bars in one of three 3d modes -
- flat, down or up. The default is down.
-
- 3. About
- Most Important! (grin). Tells who did it and how to get hold
- of him.
-
- 4. TextAlign
- Allows for left, center and right justification of text
- within status bars.
-
- 5. Most of the standard properties, including font, color, visible
- etc.
-
-
- We had a good time putting this thing together, and have found it to
- be very useful. If you have any ideas, comments, thoughts or
- suggestions, please let us know.
-
- We worked hard on this. If you like it and use it in your apps, how about
- sending us $25. It'll warm our hearts. For your $25 we'll send you the C
- source code. Even if you can't send us the $25 drop us a line and let us
- know how you are using it. Check the (About) property on the control for
- a phone number and CompuServe ID.
-
-
- Thanks and enjoy!
-
-
- Ed Staffin & Suriya Narayanan
-
-
-
- Ed's changes on 3/17/92 -
- Added Text Alignment
- Replaced MoveWindow Functions with DeferWindowPos
-
- Suri's changes on 4/11/92
- Fixed a minor bug. We were freeing the task tables even if there
- were no tasks. It caused a message but did no harm.
-
- Ed's changes on 4/26/92
- Fixed a bug. We were trying to reposition status bars on
- a WM_SIZE message even after all status bars had been
- deleted in design mode. Amazing that this had not come up
- sooner. Naturally it had to come up when demoing it for
- someone!
-