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.