mIRC Homepage
Posted By: Kurdish_Assass1n Dialog Question (Combo) - 15/05/06 03:18 AM
I am working on a dialog..and had a question about Combo
Code:
dialog Message_Chans {
  title "Message Multiple Channels"
  size -1 -1 144 174
  option dbu
  [color:red]combo 1, 10 22 90 97, size[/color]
  text "Message which channels?", 3, 4 5 65 8
  button "Send Message", 4, 39 159 62 10, ok
  button "Add", 2, 108 21 31 12
  edit "", 5, 5 143 128 11, autohs
  text "Message To Send:", 6, 6 128 51 8
}

I was wondering what the black arrowed part would be called, for example, the Editbox is $did(1), and I was wondering if there was something for the other part, please help

Posted By: hixxy Re: Dialog Question (Combo) - 15/05/06 05:11 AM
Not sure if I get you, but you retrieve the text from the bottom half of that combo you would use $did(1,<N>) where <N> is the number of the line you want to retrieve.
Posted By: Othello Re: Dialog Question (Combo) - 15/05/06 03:50 PM
The arrow is pointing to the List Box
If you need help with dialog boxes
search for one of these programs to help you design Dialog windows

Dialog Studio
Dstudio
DEditor

any one of these programs will help you in the design of the Dialog window. You can find the program if you do a search on Google or one of the Scripts and scripting information for mIRC web sites
Posted By: Kurdish_Assass1n Re: Dialog Question (Combo) - 15/05/06 10:58 PM
I was wondering if it was possible that if someone uses "Enter" then it would click on Add by itself, instead of keep on clicking on "Add"
Posted By: hixxy Re: Dialog Question (Combo) - 16/05/06 12:40 AM
Make "Add" an OK button, then add the following code to your dialog:

Code:
on *:dialog:Message_Chans:sclick:2:{
  &lt;code to add whatever&gt;
  halt
}


The /halt is so the dialog doesn't close as it normally would when you hit an OK button.
Posted By: Othello Re: Dialog Question (Combo) - 16/05/06 12:44 AM
If you do use the ADD as a add line and the OK it will close the dialog window if you have to add more you will have to reopen the dialog window again
© mIRC Discussion Forums