Sign in to follow this  

cheap special effects

This topic is 4111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Does anyone know how to do this in a more reliable way (right now, its just a special effect generated by using lots of "spaces")? What I'm trying to do is to get the titlebar caption to display in the CENTER, as oppossed to the usual LEFT. I am using C#. Thanks in advance!

Share this post


Link to post
Share on other sites
Nah you'd probably have to code it yourself. It seems a trivial task that just requires a bit of playing around. When the Form is created or resized then get the Width of it, minus a bit for the Icon and Min/Max/Quit buttons, divide by two, minus half your string and that is how many spaces you would need I guess. Shouldn't be too hard. Goodluck.

Share this post


Link to post
Share on other sites
Quote:
Original post by swordfish
Keep in mind that doing so probably violates whatever human interface guidelines there are (but not that much :).


Yeah. If you've played with other GUIs (I'm thinking of KDE), you probably realize that things like the window title format are determined by the system, and typically should not be overridden by applications. I know "skins" are in style, but ask yourself if making your app inconsistent really adds anything. And if it runs on a system where someone has installed a theme that centers window titles, it will probably look terrible.

Share this post


Link to post
Share on other sites

This topic is 4111 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this