Anson Posted June 10, 2010 Share Posted June 10, 2010 How depending on to aline left on button's writing? let gui interface with regular buttons. Link to comment Share on other sites More sharing options...
enaiman Posted June 10, 2010 Share Posted June 10, 2010 I guess you have used Google Translator to get this - unfortunately it doesn't make any sense. Are you trying to ask how to get the text on a button aligned to left? #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) $Form1 = GUICreate("Form1", 279, 132, 192, 124) GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close") $Button1 = GUICtrlCreateButton("Left Aligned", 16, 16, 243, 25, $BS_LEFT) $Button2 = GUICtrlCreateButton("Centered", 16, 52, 243, 25, $BS_CENTER) $Button3 = GUICtrlCreateButton("Right Aligned ", 16, 92, 243, 25, $BS_RIGHT) GUISetState(@SW_SHOW) While 1 Sleep(100) WEnd Func Form1Close() Exit EndFunc SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Anson Posted June 10, 2010 Author Share Posted June 10, 2010 Thanks for your answer to solve my problem, but i feel text too left, can make the gap between text and button left side? thanks your giving. Link to comment Share on other sites More sharing options...
enaiman Posted June 10, 2010 Share Posted June 10, 2010 Just add white spaces to the left: " Left Aligned" SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script wannabe "Unbeatable" Tic-Tac-Toe Paper-Scissor-Rock ... try to beat it anyway :) Link to comment Share on other sites More sharing options...
Anson Posted June 10, 2010 Author Share Posted June 10, 2010 oh~I'm so stupid, I try it, GUI button's text have a uniform style, Thanks you so much. 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