Jump to content
Sign in to follow this  
DCCD

How to fix "Edit Control ,Tremor"

Recommended Posts

DCCD

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,,

Share this post


Link to post
Share on other sites
WideBoyDixon

#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 by WideBoyDixon

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.