Jump to content

Recommended Posts

Posted

I have a lots of Labels and input boxes under one treeviewitem($Clientitem), and something else under another($generalitem)

How can i in the best way switch between these treeviewitems, without overlapping each other?

$treeview = GUICtrlCreateTreeView (6,45,120,280,BitOr($TVS_HASBUTTONS,$TVS_HASLINES,$TVS_LINESATROOT,$TVS_DISABLEDRAGDROP,$TVS_SHOWSELALWAYS),$WS_EX_CLIENTEDGE)

$generalitem = GUICtrlCreateTreeViewitem ("General",$treeview)

$aboutitem = GUICtrlCreateTreeViewitem ("About",$generalitem)

$Logsitem = GUICtrlCreateTreeViewitem ("Logs",$generalitem)

$Clientitem = GUICtrlCreateTreeViewitem ("Client Info",$treeview)

Posted (edited)

Maybe this will helps you a little bit.

Just resize/create the child-windows to the size of the area with the additional controls:

http://www.autoitscript.com/forum/index.php?showtopic=8753

If this is what you mean...

Another possibility is to make 2 small functions for instance.

In one you hide the controls for one item and show the other controls and in the other you hide the other controls and show the one for the other item... :lmao:

Hopefully you understand a little bit what I mean o:):)

Edited by Holger
Posted

Make array with control id's and then set it in loop:

Dim $ahCont[15]
$ahCont[0] = GUICtrlCreateLabel(...)
...
$ahCont[14] = GUICtrlCreateInput(...)

For $i = 0 to 14
  GUICtrlSetState ($ahCont[$i],$GUI_HIDE)
Next

<{POST_SNAPBACK}>

o, thx alot, ill try that :lmao:

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
  • Recently Browsing   0 members

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