Triton Posted April 7, 2004 Share Posted April 7, 2004 to update a list box? Triton Link to comment Share on other sites More sharing options...
Triton Posted April 7, 2004 Author Share Posted April 7, 2004 Ok next question is How because I can't seem to update it with the text that I want. Triton Link to comment Share on other sites More sharing options...
Valik Posted April 7, 2004 Share 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 Link to comment Share on other sites More sharing options...
Triton Posted April 7, 2004 Author Share Posted April 7, 2004 Ok I mis-spoke I mean a guisetcontrol("list"") Sorry Triton Link to comment Share on other sites More sharing options...
jpm Posted April 7, 2004 Share 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 Link to comment Share on other sites More sharing options...
Triton Posted April 7, 2004 Author Share Posted April 7, 2004 Thanks for the info Triton 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