Jump to content

Icons...


cppman
 Share

Recommended Posts

Hi. This question has been bugging me forever!

I have a List control, its variable is $List_10 and i'am trying to put a small ICON in it...

like,

-------------------

(icon) text

------------------

(icon) text

------------------

like that.... anyone have any ideas???

thanks... also, it is probably in the help file, but im not sure what to look under..

Link to comment
Share on other sites

Hi. This question has been bugging me forever!

I have a List control, its variable is $List_10 and i'am trying to put a small ICON in it...

like,

-------------------

(icon) text

------------------

(icon) text

------------------

like that.... anyone have any ideas???

thanks... also, it is probably in the help file, but im not sure what to look under..

List or ListView?

ListView use GuiCtrlSetImage

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Damn! that sux....

alright, well thanks though...

Not so fast...

Does this work?

#include <GUIConstants.au3>
$Form1 = GUICreate("AForm1", 384, 218, 192, 125)
$ListView1 = GUICtrlCreateListView("I|Ate|Too|Much|Cheese", 8, 8, 369, 115, -1, $LVS_EX_SUBITEMIMAGES)
$ListView1_0 = GUICtrlCreateListViewItem(" |Then|Hit|The|John", $ListView1)
GUICtrlSetImage (-1, "shell32.dll",22)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
    ;;;;;;;
    EndSelect
WEnd
Exit
Link to comment
Share on other sites

Not so fast...

Does this work?

#include <GUIConstants.au3>
$Form1 = GUICreate("AForm1", 384, 218, 192, 125)
$ListView1 = GUICtrlCreateListView("I|Ate|Too|Much|Cheese", 8, 8, 369, 115, -1, $LVS_EX_SUBITEMIMAGES)
$ListView1_0 = GUICtrlCreateListViewItem(" |Then|Hit|The|John", $ListView1)
GUICtrlSetImage (-1, "shell32.dll",22)
GUISetState(@SW_SHOW)
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
   ;;;;;;;
    EndSelect
WEnd
Exit

Please read the thread a little better, the user already knows that it works with listview, the user was asking about a ListBox

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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