Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting to Top-Level Form
Message
 
To
21/03/2000 12:37:40
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00348385
Message ID:
00348500
Views:
27
>A little problem with putting the Status Bar in a toolbar, it don't look as nice as putting it directly in the TL. Is there something I can do about that?
>It is so much dead area (read large margins) and if the window is not maximized there is a lot of lines around it. Can I get rid of all this?

You may have to adjust some panels (the non-constant ones), and have the total sum Width roughly correct...

Then I have some code in the toolbar init() as follows, this may help:

this.dock(3)
this.sizable = .t.
this.width = sysmetric(1)
this.oStatbar.width = sysmetric(1)
this.sizable = .f.

My TL statusbars are always set by a Maxed form but you can call this again if your form is resizable, based on current form width, if you wanted. But look at other apps, how the statusbar works (differently) - something has to "give" somewhere when a form is resized smaller - it's up to you to decide how it should act. There is a lot of control in the Panels settings.

You know the problem with not using a toolbar? Forms can be placed on top of the statusbar, so it will be hidden. Not good behavior...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform