Jump to content
Sign in to follow this  
Daniel

Picture Com ScrollBar. (Resolvido)

Recommended Posts

Aew Galera Blz,

 

Entaum To Tentando Aki Fazer Assim, Colocar Um Imagem Em Tamanho Real, Mais Com O Scroll

 

Por Exemplo:

O Tamanho Da Imagem É: 1200x1000

E O Tamanho Do GuiCtrlCreatPic É: 700x700

 

Dai Eu Keria Que A Imagen Ficasse Em Tamanho Real Só Q Com O Scroll.

 

Vlw Aew :D

Share this post


Link to post
Share on other sites

http://www.autoitscript.com/forum/topic/113723-scrollbars-made-easy/

 

Exemplo pratico:

 

#include <GUIScrollbars_Ex.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Map Hook", 910, 749,-1,-1,$WS_SYSMENU+$WS_VSCROLL+$WS_HSCROLL) ;910, 749, 343, 125)
GUISetBkColor(0x000000)
$Pic1 = GUICtrlCreatePic("MapHook.jpg", 0, 0,4096,4096) ;128, 184, 604, 332)
$aAperture = _GUIScrollbars_Generate($Form1, 4096, 4096)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
    Case $GUI_EVENT_CLOSE
        Exit
    case $Pic1
        ;MsgBox("","",$Pic1)
EndSwitch
WEnd

 

Download das includes com exemplos(ingles): http://www.autoitscript.com/forum/index.php?app=core&module=attach&section=attach&attach_id=32965

  • Like 1

Share this post


Link to post
Share on other sites

Dúdida considerada sanada, o tópico continuará aberto para postagem de outras dúvidas relativas a este mesmo assunto.

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  

×