Sign in to follow this  
Followers 0
cppman

Icons...

7 posts in this topic

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

Share this post


Link to post
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.

 

Share this post


Link to post
Share on other sites

List or ListView?

ListView use GuiCtrlSetImage

Its just a list: "$Objects_Data = GuiCtrlCreateList("", 109, 235, 240, 123)"

Share this post


Link to post
Share on other sites

Its just a list: "$Objects_Data = GuiCtrlCreateList("", 109, 235, 240, 123)"

Far as I can tell List doesn't support Icons/images in the list


SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

Share this post


Link to post
Share on other sites

Far as I can tell List doesn't support Icons/images in the list

Damn! that sux....

alright, well thanks though...

Share this post


Link to post
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

Share this post


Link to post
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.

 

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