Glyph Posted November 9, 2008 Share Posted November 9, 2008 $allcontrols = "$listview,$dnslabel,$serverip,$portlabel,$serverport,$randport,$IDLabel,$userserver,$randid,$passLabel,$userpassword,"& _ "$icon,$changeicon,$servercompile,$port2label,$comport,$saveport,$pass2label,$serverpass,$btips,$savesets,$logedit,"& _ "$creds" ;Apply resize method to all controls $allctrls=StringSplit($allcontrols,",") if IsArray($allctrls) Then $all = 0 do $all=$all+1 GUICtrlSetResizing ($allctrls[$all], $GUI_DOCKALL) msgbox(0,$allctrls[0]-$all,$allctrls[$all],1) until $all = $allctrls[0] Else msgbox(0,"","epic fail") Exit EndIf Doesn't seem to work? I don't understand why! tolle indicium Link to comment Share on other sites More sharing options...
BrettF Posted November 9, 2008 Share Posted November 9, 2008 Maybe? Can you post a GUI we can actually test with? Code snippets mean extra work to make sure something works. $allcontrols = "listview,dnslabel,serverip,portlabel,serverport,randport,IDLabel,userserver,randid,passLabel,use rpassword," & _ "icon,changeicon,servercompile,port2label,comport,saveport,pass2label,serverpass,btips,savesets,l ogedit," & _ "creds" ;Apply resize method to all controls $allctrls = StringSplit($allcontrols, ",") If IsArray($allctrls) Then For $all = 1 To $allctrls[0] GUICtrlSetResizing(Eval($allctrls[$all]), $GUI_DOCKALL) MsgBox(0, $allctrls[0] - $all, $allctrls[$all], 1) Next Else MsgBox(0, "", "epic fail") Exit EndIf Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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