mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
Hi,

In my script (which is quite large - so i wont paste) - there is a dialog which contains a combobox with the id number 2.

Code:
  combo 2, 12 43 79 68, tab 1 sort size 


Now when you click on an item in the combobox, the editbox automatically changes to reflect $did(2).seltext

My question is whether it is possible (and if so, how) to edit the editbox of a combobox.

Reading the helpfile there is an entry under /did:

Quote:
You can access the edit control in a combobox by using 0 as the N value.


Now i wanted to replace the text so i attempted the following line of code:

Code:
did -ra $dname 2 0 NewTextHere


However that just wiped the whole combobox and added an entry 0.

That being said, trying the same thing with $did, it worked successfully, using the command:

Code:
echo -s $did(2,0)


Am i missing something here?

Your assistance will be greatly appreciated.

Thankyou.

Last edited by onesikgypo; 29/06/09 09:25 AM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Use did -o $dname 2 0 Newtext
(-i should have the same effect as there's only one line "0" aka only one edit control) smile

Joined: Oct 2005
Posts: 122
O
Vogon poet
OP Offline
Vogon poet
O
Joined: Oct 2005
Posts: 122
heh, so simple, thanks smile


Link Copied to Clipboard