Triton 0 Posted April 7, 2004 to update a list box? Triton Share this post Link to post Share on other sites
Triton 0 Posted April 7, 2004 Ok next question is How because I can't seem to update it with the text that I want. Triton Share this post Link to post Share on other sites
Valik 478 Posted April 7, 2004 (edited) A standard ListBox, yes. A custom ListBox, maybe. A ListBox in some Office 2003 application, Snowball's chance in hell.sorry, some recent personal experience haunting me.Lar.Raise your hand if you love how Microsoft's flagship products don't use their own API. <--- She loves it, watch her raise her hand over and over. Edited April 7, 2004 by Valik Share this post Link to post Share on other sites
Triton 0 Posted April 7, 2004 Ok I mis-spoke I mean a guisetcontrol("list"") Sorry Triton Share this post Link to post Share on other sites
jpm 93 Posted April 7, 2004 Ok I mis-spoke I mean a guisetcontrol("list"") Sorry You get an example in the doc when you click on GUI reference . That's the example you find in. Opt("GuiNotifyMode",1); make all controls notify to avoid ; GuiSetControlNotify() on each control GuiCreate ("My first advanced AutoIt GUI") ; start the control definitions $nList=GuiSetControl ("list", "", 10,10); add prompt info GuiSetControlData(-1,"first line|second line") $nAdd = GuiSetControl ("button", "Add", 10,200,50) ; when click will add a line $nClear = GUISetControl ("button", "Clear", 80,200); will clear the list control $n=0 While GuiMsg () >0 ; to display the dialog box and wait a click if GuiRead () = $nAdd then GuiSetControlData($nList,"text entry "& $n) if GuiRead() = $nClear then GuiSetControlData($nList,"") $n=$n+1 Wend you can also read the GuiSetControlData that the function aims to create update the list. good reading Share this post Link to post Share on other sites
Triton 0 Posted April 7, 2004 Thanks for the info Triton Share this post Link to post Share on other sites