Jump to content

[...] Trying to create specific display (treeview or listview)


Recommended Posts

Hi.

I'm trying to make the same display than on this image.

Posted Image

Using treeview, here's what I accomplished.

Posted Image

I'm trying to find a way to have bigger images to match the same size

than for the first image.

I searched over english and french forums + autoit help and treeviewconstants.au3 and didn't find

what 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 here

that I could have missed ?

Thank you in advance.

Here's the code of what I achieved to make

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