Jump to content
Sign in to follow this  
pizzocaro

janela GUI com barra de rolagem automatica

Recommended Posts

Olá boa tarde !

 

Alguem sabe informar com deixar a barra rolagem de uma janela automatica, ou seja , conforme os dados aparecem a barra ja rola para a ultima informação.

agradeço obrigado !

Share this post


Link to post
Share on other sites

Olá @pizzocaro, um exemplo bem simples está aqui:

 

A cada 1000 milisegundos (1segundo), ele atualiza o title da janela.

;~ #AutoIt3Wrapper_AU3Check_Parameters= -q -d -w 1 -w 2 -w 3 -w- 4 -w 5 -w 6 -w- 7
;~ #Tidy_Parameters=/sf

#include-once
#include <Array.au3>
#include <GUIConstantsEx.au3>

OnAutoItExitRegister("OnExit")

Opt("GUIOnEventMode", 1)
Opt("GUIEventOptions", 1)
Opt("MustDeclareVars", 1)

Global $aGuiSize[2] = [800, 600]
Global $sGuiTitle = Hora()
Global $hGui

$hGui = GUICreate($sGuiTitle, $aGuiSize[0], $aGuiSize[1])
GUISetOnEvent($GUI_EVENT_CLOSE, "Quit")

GUISetState(@SW_SHOW, $hGui)

AdlibRegister("exec", 1000)

While Sleep(25)
WEnd

Func exec()
    WinSetTitle($hGui, "", Hora())
EndFunc   ;==>exec

Func OnExit()
    AdlibUnRegister("exec")
    GUISetState($hGui, @SW_HIDE)
    GUIDelete($hGui)
EndFunc   ;==>OnExit

Func Quit()
    Exit
EndFunc   ;==>Quit

Func Hora()
    Return @HOUR & ":" & @MIN & ":" & @SEC
EndFunc   ;==>Hora

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  

×