Jump to content

(Solved)text in a framed label?


Recommended Posts

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.

Link to comment
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.

Link to comment
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! ....
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...