DCCD Posted May 1, 2009 Posted May 1, 2009 I Need some F1 Here, Here's my code #include <GUIConstants.au3> GUICreate("My GUI edit", 400, 300, -1, -1) ; will create a dialog box that when displayed is centered $Body_Read=GUICtrlCreateEdit ("DCCD ,AutoIt, Hey there, How to fix this" & @CRLF& "'tremor'"& @CRLF &"Without Sleep", -1,-1,400, 200,$ES_AUTOVSCROLL+$WS_VSCROLL) $FontsSizeSlider_Read = GuiCtrlCreateSlider(180, 210, 175, 30) GUICtrlSetLimit(-1,100,0) ; change min/max value GUISetState () ; Run the GUI until the dialog is closed While 1 ; $FontsSizeSlider = GUICtrlRead($FontsSizeSlider_Read) ;Sleep(100) Without "Sleep" Please GUICtrlSetFont ($Body_Read, $FontsSizeSlider, 400, 2, "Comic Sans MS") ; $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend Thanks everyone,, [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group
WideBoyDixon Posted May 1, 2009 Posted May 1, 2009 (edited) #include <GUIConstants.au3> #include <EditConstants.au3> #include <WindowsConstants.au3> GUICreate("My GUI edit", 400, 300, -1, -1) ; will create a dialog box that when displayed is centered $Body_Read=GUICtrlCreateEdit ("DCCD ,AutoIt, Hey there, How to fix this" & @CRLF& "'tremor'"& @CRLF &"Without Sleep", -1,-1,400, 200,$ES_AUTOVSCROLL+$WS_VSCROLL) $FontsSizeSlider_Read = GuiCtrlCreateSlider(180, 210, 175, 30) GUICtrlSetLimit(-1,100,0) ; change min/max value GUISetState () Global $lastSize = GUICtrlRead($FontsSizeSlider_Read), $thisSize ; Run the GUI until the dialog is closed While 1 $thisSize = GUICtrlRead($FontsSizeSlider_Read) If $thisSize <> $lastSize Then GUICtrlSetFont ($Body_Read, $thisSize, 400, 2, "Comic Sans MS") $lastSize = $thisSize EndIf $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop Wend WBD Edited May 1, 2009 by WideBoyDixon [center]Wide by name, Wide by nature and Wide by girth[u]Scripts[/u]{Hot Folders} {Screen Calipers} {Screen Crosshairs} {Cross-Process Subclassing} {GDI+ Clock} {ASCII Art Signatures}{Another GDI+ Clock} {Desktop Goldfish} {Game of Life} {3D Pie Chart} {Stock Tracker}[u]UDFs[/u]{_FileReplaceText} {_ArrayCompare} {_ToBase}~ My Scripts On Google Code ~[/center]
DCCD Posted May 1, 2009 Author Posted May 1, 2009 Cool, thanks! [u][font=Arial Black]M[/font]y Blog, AVSS Parts[/u][font=Arial Black]Else[/font][font=Arial Black]L[/font]ibya Linux Users Group
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