MajSlayer420 Posted January 28, 2007 Share Posted January 28, 2007 Hello I need to get this bit of code to center all incomming strings within my form/window/program. GUISetFont (11, 800, 0, "Comic Sans MS", $MyGUI) ; Print STATUS OUTPUT in BIG LETTERS $MyGUI_StatusLine = GUICtrlCreateLabel("", 20, 234, 180, 18) ; GUICtrlSetData($MyGUI_StatusLine, "" & $sMessage) ; print activity state info Any ideas? Thanks, MajSlayer420 Link to comment Share on other sites More sharing options...
Zedna Posted January 28, 2007 Share Posted January 28, 2007 (edited) Use style $SS_CENTER in GUICtrlCreateLabel() $lbl = GUICtrlCreateLabel("Some text", 16, 8, 403, 17, $SS_CENTER) Edited January 28, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MajSlayer420 Posted January 28, 2007 Author Share Posted January 28, 2007 Thanks a bunch I figured there was some easy way to fix it. good job. One more question please. How would I change this text to the color Green? Thanks a bunch MajSlayer420 Link to comment Share on other sites More sharing options...
MajSlayer420 Posted January 28, 2007 Author Share Posted January 28, 2007 Thanks a bunch I figured there was some easy way to fix it. good job. One more question please.How would I change this text to the color Green?Thanks a bunchMajSlayer420NEVER MIND FOUND IT . Thanks AgainMS420 Link to comment Share on other sites More sharing options...
Zedna Posted January 28, 2007 Share Posted January 28, 2007 How would I change this text to the color Green? GUICtrlCreateLabel ("my Green label", 10,20) GUICtrlSetColor(-1,0x00ff00) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
MajSlayer420 Posted January 28, 2007 Author Share Posted January 28, 2007 Hi again, Is there a way to change the forground color of a Slider? Thanks MajSlayer420 Link to comment Share on other sites More sharing options...
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