Sign in to follow this  
Followers 0
Radsam

Icons in ListView

5 posts in this topic

How can I use icons with text below the icons in a listview control?

For an example of what I mean, please see the Frontend for PStools here or see screenshot in attatched pic.

Thanks,

Radsam

post-3941-1162100338_thumb.jpg

Share this post


Link to post
Share on other sites



Is there a built in function in autoit to do this? Or perhaps is it possible to use Tabs within Tabs?

Share this post


Link to post
Share on other sites

Not really the same - near on:

#include <GUIConstants.au3>

$hGUI = GUICreate("Test", 400, 300)

$lv = GUICtrlCreateListView("Programs", 0, 0, 135, 300)
GUICtrlSetStyle(-1, BitOr($LVS_SHOWSELALWAYS, $LVS_SINGLESEL))
GUICtrlSetBkColor(-1, -1)
GUICtrlCreateListViewItem("Prog1", $lv)
GUICtrlSetImage(-1, "shell32.dll", 17)
GUICtrlCreateListViewItem("Prog2", $lv)
GUICtrlSetImage(-1, "shell32.dll", 3)
GUICtrlCreateListViewItem("Prog3", $lv)
GUICtrlSetImage(-1, "explorer.exe", 2)
GUICtrlCreateListViewItem("Prog4", $lv)
GUICtrlSetImage(-1, "shell32.dll", 22)
GUICtrlCreateListViewItem("Prog5", $lv)
GUICtrlSetImage(-1, "shell32.dll", 34)

GUISetState()

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd

Share this post


Link to post
Share on other sites

Thanks alot Holger. This is what I was looking for.

BTW, I also like your icons in the menus script too.

Thanks,

Radsam

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  
Followers 0