mIRC Homepage
Posted By: ChemiKhazi Dialog question - 10/01/03 09:13 PM
In the DCC accept dialog, theres these text that tells you the nick, file and size that are selectable. I tried to find out what these are and through experimentation, I've found that they're edit boxes with the style "read". However, I can't figure out how to make the boxes dissapear. Can anyone help me with this?
Posted By: Hammer Re: Dialog question - 10/01/03 09:24 PM
In your own dialog, if you want to make the control hidden, use did -h (and did -v to unhide it). (I think this is what you mean.)
Posted By: ChemiKhazi Re: Dialog question - 10/01/03 09:27 PM
Uhm. Not exactly. What I meant was I want the text to be seen but not the edit box border.
Posted By: Hammer Re: Dialog question - 10/01/03 10:44 PM
There is no "flat" type style for a selectedable edit control. The closest I can come to duplicating mIRC's own DCC Accept dialog is like this:
Code:
dialog tdefBlerg {
  option dbu
  size -1 -1 160 83
  title mIRC DCC Get
  text  "" ,  1,   5   6 150  10
  text  "" ,  2,   5  17  12  10
  text  "" ,  3,  23  17  98  10, nowrap
  text  "" ,  4,   5  27  12  10
  text  "" ,  5,  23  27  98  10, nowrap
  text  "" ,  6,   5  37  12  10
  text  "" ,  7,  23  37  98  10, nowrap
  check "" ,  8,  23  48  50  10
  text  "" ,  9,   5  62  25  10
  combo      10,   5  70 139 100, drop edit size vsbar
  button "", 11, 126  15  30  13, ok
  button "", 12, 126  30  30  13
  button "", 13, 126  45  30  13
  button "", 14, 146  70  10  10
}
on *:DIALOG:blerg:init:*:{
  did -a $dname  1 The user below is attempting to send you a file:
  did -a $dname  2 Nick:
  did -a $dname  3 $me ( $+ $gettok($address($me,5),2,33) $+ )
  did -a $dname  4 File:
  did -a $dname  5 $nopath($mircini)
  did -a $dname  6 Size:
  did -a $dname  7 $bytes($file($mircini).size,3bkmgt).suf
  did -a $dname  8 Minimize window
  did -c $dname  8
  did -a $dname  9 Save As:
  did -i $dname 10 0 $+($getdir,$nopath($mircini))
  did -i $dname 10 1 $getdir
  did -i $dname 10 2 $wavedir
  did -a $dname 11 Accept
  did -a $dname 12 Ignore
  did -a $dname 13 Cancel
  did -a $dname 14 ?
}

/dialog -m blerg tdefBlerg

I would imagine that you can do what you are trying to do if you use mdx, but that seems like an awful waste of time just to get selectable text like that. I am not sure that I have ever selected any of those 3 text fields before today, and I've been using mIRC fairly heavily for nearly 5 years. I'm not even sure that I knew you could select them nor really why you'd want to do so.
Posted By: ChemiKhazi Re: Dialog question - 10/01/03 11:55 PM
Thanks hammer smile

Decided to go with text fields instead.
Posted By: qwerty Re: Dialog question - 11/01/03 11:07 AM
If you want to keep the editbox, you can use MDX to take out the editbox border. If you don't know what MDX is, check this out.
© mIRC Discussion Forums