Sypher Posted August 16, 2007 Posted August 16, 2007 Hiya, I've searched for a while, tested lots of things but i couldn't get it to work so here it goes. I am using _GUICtrlListViewSetItemText and _GUICtrlListViewInsertItem to fill my listview. The reason i am doing this is for customization: people can change the column order and width, so i'm kinda stuck to those two. Now i want to add icons in front of the entries, in column 0. I tried GUICtrlSetImage($ListView, @ScriptDir & "\icons\" & $Icon, 0)oÝ÷ Ù8Z· +Æîµ«,¢Ú²&u©è¶«¢w¢µÈZ¬²íè¢{"Ø^+-¾'°¶azÞ±ëméZµë-êÞÆ¬*izÚ¶¡×ºÚ"µÍBBBBIÌÍÛ]Ñ[HHÑÕRPÝÝY]Ò[Ù][J ÌÍÓÝY]Ë ÌÍÜÜÚ][Û ÌÎNÉÌÎNÊBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÒXÛÛ ][ÝÉ][ÝÊBBBBBQÕRPÝÙ][XYÙJ ÌÍÓÝY]ËØÜ [È ][ÝÉÌLÚXÛÛÉÌLÉ][ÝÈ [È ÌÍÒXÛÛ BBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÔÝ]K ÌÍÔÝ]JBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÕÛÜÜË ÌÍÕÛÜÜÊBBBBBWÑÕRPÝÝY]ÔÙ]][U^ ÌÍÓÝY]Ë ÌÍÛ]Ñ[K ÌÍØÛÛ[[ÕÝY ÌÍÕÝY I tried the GUiCtrlSetImage on $newEntry but that doesn't work. I also tried the _GuiCtrlSetImage function i found floating around. I hope someone can help me out with this, as i have a hunch this can be solved quite quickly, and that i am overlooking something. Thanks in advance!
Sypher Posted August 18, 2007 Author Posted August 18, 2007 *Bump*.. Can this topic be moved to a better subforum?
randallc Posted August 19, 2007 Posted August 19, 2007 GUICtrlSetImage($ListView, @ScriptDir & "\icons\" & $Icon, 0)Hi,I think adding it to the "ListView" itself will add to the last created item; as you have no created items (added ones are not created as objects), you are just changing the default icon each time;Either 1. CreateItems; then use this command after each one with "-1" instead of listview (or itemize them in an array, then use their handle name.)or2. use gafrost's method ; examples available; search his name and "images"; I think it works still with Created items?or3. try PaulIA's library "A3L" ; its a sticky; I think it works still with Inserted items?Best, Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
Sypher Posted August 20, 2007 Author Posted August 20, 2007 Thanks for the reply. I did look at A3L but there was no real mention of icons in listviews. I did try "-1" instead of $listview, but when i did that no icon appeared.
randallc Posted August 20, 2007 Posted August 20, 2007 Hi, Maybe send your script and icon and I'l have a try if you want.. Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW
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