Sign in to follow this  
Followers 0
Triton

Is It Possible

6 posts in this topic

to update a list box?

:D


Triton

Share this post


Link to post
Share on other sites



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

#3 ·  Posted (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.

:D <--- She loves it, watch her raise her hand over and over.

Edited by Valik

Share this post


Link to post
Share on other sites

Ok I mis-spoke I mean a guisetcontrol("list"")

Sorry :D


Triton

Share this post


Link to post
Share on other sites

Ok I mis-spoke I mean a guisetcontrol("list"")

Sorry  :D

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 :huh2:

Share this post


Link to post
Share on other sites

Thanks for the info

:D


Triton

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