mIRC Home    About    Download    Register    News    Help

Print Thread
#149192 15/05/06 03:18 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
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



-Kurdish_Assass1n
#149193 15/05/06 05:11 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

#149194 15/05/06 03:50 PM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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




Intelligence: It's better to ask a stupid question, then to prove it by not asking....
#149195 15/05/06 10:58 PM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
OP Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
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"


-Kurdish_Assass1n
#149196 16/05/06 12:40 AM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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.

#149197 16/05/06 12:44 AM
Joined: Dec 2002
Posts: 417
O
Fjord artisan
Offline
Fjord artisan
O
Joined: Dec 2002
Posts: 417
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




Intelligence: It's better to ask a stupid question, then to prove it by not asking....

Link Copied to Clipboard