Sign in to follow this  
Followers 0
JohnOne

(Solved)text in a framed label?

4 posts in this topic

#1 ·  Posted (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 by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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! ....

Share this post


Link to post
Share on other sites

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  
Followers 0