Jump to content

Autoit Gui Updown Control....


Recommended Posts

Can an updown control be dynamically resized I have tried the following, but it does not work. [based on jpm's GuiUpDown.au3 example file]

AutoItSetOption("TrayIconDebug", 1)
;AutoItSetOption("WinTitleMatchMode", 4)
FileChangeDir(@Scriptdir)
#include "GUI_include.au3"

$title = "My Guy UpDown"
GUICreate($title)

$input = GUISetControl("input","2",10,10, 50, 20)
$updown = GUISetControl("updown",$input,0,0)
GuiSetControlEx(-1,0,0,"",0,10)

; Attempt to resize
$input = GUISetControl($input, "2",10,10, 100, 40 )
$updown = GUISetControl($updown,$input,0,0)

GuiWaitClose(3)
msgbox(0,"Updown",GuiRead($input),2)
Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

I fix it gui.22 :D

$title = "My Guy UpDown"
GUICreate($title,-1,-1,-1,-1, 0x04CF0000, 0x00000110)

$input = GUISetControl("input","2",10,10, 50, 20)
$updown = GUISetControl("updown",$input,0,0)

; Attempt to resize
GUISetControl($input, "2",10,10, 100, 40 )
GUISetControl($updown,$input,0,0)

GuiWaitClose()
msgbox(0,"Updown",GuiRead($input),2)
Edited by jpm
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...