Jump to content
Sign in to follow this  
Glyph

Problem with GUI controls

Recommended Posts

Glyph

$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

Share this post


Link to post
Share on other sites
BrettF

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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.