SagePourpre Posted March 23, 2010 Posted March 23, 2010 Hi. I'm trying to make the same display than on this image. Using treeview, here's what I accomplished. I'm trying to find a way to have bigger images to match the same sizethan for the first image. I searched over english and french forums + autoit help and treeviewconstants.au3 and didn't findwhat I was looking for. Is there such a way to have larger items images ? Also, if I want to push further and have multiline text for a control(with different color for the second line)... Is there a way known around herethat I could have missed ?Thank you in advance. Here's the code of what I achieved to makeexpandcollapse popup#include <misc.au3> #include <ListViewConstants.au3> #include <GuiConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <TreeViewConstants.au3> $Gui = GuiCreate("Test",500,500,-1,-1,-1,$WS_EX_ACCEPTFILES) $tv = GUICtrlCreateTreeView(0,0,500,500,BitOR($TVS_FULLROWSELECT,$TVS_NONEVENHEIGHT)) GUICtrlSendMsg($tv,$TVM_SETITEMHEIGHT,110,0) GUICtrlCreateTreeViewItem("22ss" & @crlf & "s",$tv) GUICtrlSetImage(-1, "shell32.dll", 14) GUICtrlCreateTreeViewItem("22",$tv) GUICtrlSetImage(-1, "shell32.dll", 14) $22 = GUICtrlCreateTreeViewItem("22",$tv) GUICtrlSetImage(-1, "shell32.dll", 14) $22 = GUICtrlCreateTreeViewItem("22",$tv) GUICtrlSetImage(-1, "shell32.dll", 14) GUICtrlSetFont($22,20) GUICtrlSetImage(-1, "shell32.dll", 15) GUICtrlCreateTreeViewItem("22",$22) GUICtrlSetImage(-1, "shell32.dll", 16) GUISetState() While 1 If _IsPressed(01) Then While _IsPressed(01) GUICtrlSendMsg(-1,$TVM_CREATEDRAGIMAGE,0,0) WEnd EndIf $Msg = GUIGetMsg() Switch $Msg Case -3 Exit Case Else EndSwitch WEnd
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