Jump to content

Problem with GUI controls


Glyph
 Share

Recommended Posts

$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

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