JohnOne Posted August 9, 2012 Share Posted August 9, 2012 (edited) No text shows on this label, seems a little odd.#include #include GUICreate("")GUICtrlCreateLabel("A",10,10,20,20,BitOR($SS_BLACKFRAME, $SS_CENTER));GUICtrlSetData(-1,"A")GUISetState()DoUntil GUIGetMsg() = $GUI_EVENT_CLOSE Edited August 9, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted August 9, 2012 Author Share Posted August 9, 2012 can emulate it like this, but it just seems a bit weird. #include <GUIConstants.au3> #include <StaticConstants.au3> GUICreate("") GUICtrlCreateLabel("A",10,10,20,20,BitOR($SS_BLACKFRAME, $SS_CENTER)) GUICtrlCreateLabel("A",11,11,18,18,$SS_CENTER) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Loz Posted August 9, 2012 Share Posted August 9, 2012 To get a border around a label, I use $WS_BORDER rather than $SS_BLACKFRAME. #include <GUIConstants.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> GUICreate("") GUICtrlCreateLabel("A",10,10,20,20,BitOR($SS_BLACKFRAME, $SS_CENTER)) GUICtrlCreateLabel("B",10,40,20,20,BitOR($WS_BORDER, $SS_CENTER)) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE .... GOTOs? We don't need no stinkin' GOTOs! .... Link to comment Share on other sites More sharing options...
JohnOne Posted August 9, 2012 Author Share Posted August 9, 2012 Sweet, that'll do me, I'm proper lousy with styles. Thanks. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. 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