Jump to content
  • Advertisement
Sign in to follow this  
geekalert

cheap special effects

This topic is 4327 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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!