Revolter Posted November 28, 2010 Posted November 28, 2010 (edited) how do i center a text both orizontaly and verticaly in a label? thnx Edited November 28, 2010 by Revolter [center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]
Realm Posted November 28, 2010 Posted November 28, 2010 (edited) Edit: Originally left a Sarcastic Note, because I did not read the question in it's entirety. You can change the style with $SS_CENTER to center the text horizontally, as for vertical I don't know of any styles that will adjust this for you. In the past, when I had encountered a need for vertical centering, I would you use StringLen() and my sharp mathematical skills to create a small algorithm function to center the text for me. Realm Edited November 28, 2010 by Realm My Contributions: Unix Timestamp: Calculate Unix time, or seconds since Epoch, accounting for your local timezone and daylight savings time. RegEdit Jumper: A Small & Simple interface based on Yashied's Reg Jumper Function, for searching Hives in your registry.
Revolter Posted November 28, 2010 Author Posted November 28, 2010 Edit: Originally left a Sarcastic Note, because I did not read the question in it's entirety.You can change the style with $SS_CENTER to center the text horizontally, as for vertical I don't know of any styles that will adjust this for you. In the past, when I had encountered a need for vertical centering, I would you use StringLen() and my sharp mathematical skills to create a small algorithm function to center the text for me. Realmooo ... il put the label a couple of pixels to the bottom ... in my case the text was upper than a button next to the label ... anyway thnx a lot [center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]
Revolter Posted November 28, 2010 Author Posted November 28, 2010 Create the label with the $SS_CENTER and $SS_CENTERIMAGE styles.it works ... thanks a lot [center]Sorry for my bad english. Trying my best :Dhttp://iulianonofrei.comhttp://www.last.fm/user/Revolt666 [/center]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now