cppman Posted February 16, 2006 Share Posted February 16, 2006 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.. Miva OS Project Link to comment Share on other sites More sharing options...
GaryFrost Posted February 16, 2006 Share Posted February 16, 2006 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 More sharing options...
cppman Posted February 16, 2006 Author Share Posted February 16, 2006 List or ListView?ListView use GuiCtrlSetImageIts just a list: "$Objects_Data = GuiCtrlCreateList("", 109, 235, 240, 123)" Miva OS Project Link to comment Share on other sites More sharing options...
GaryFrost Posted February 16, 2006 Share Posted February 16, 2006 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. Link to comment Share on other sites More sharing options...
cppman Posted February 16, 2006 Author Share Posted February 16, 2006 Far as I can tell List doesn't support Icons/images in the listDamn! that sux....alright, well thanks though... Miva OS Project Link to comment Share on other sites More sharing options...
Emerica Posted February 16, 2006 Share Posted February 16, 2006 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 Project X Network StreamDrive Link to comment Share on other sites More sharing options...
GaryFrost Posted February 16, 2006 Share Posted February 16, 2006 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 More sharing options...
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