mIRC Homepage
Posted By: Jaakko Dialog problems - 13/10/03 04:16 PM


oki two questions
1. in that picture in the lisbox wheres someones harddisk the horizontal scrollbar doesn't work.. i have hsbar in the dialog creation code. Any ideas why it doesn't work or how i can make it work

2. i have this code "on *:dialog:ftp:rclick:1:{ echo -at hi }" ...it works with sclick but it doesn't work with rclick (it doesn't even show when i put * in it and echo -at $devent)..i've checked no double version of that rclick:1 anywhere. tack o)

two nupie questions but it's getting frustrating when i can't find a solution smile

Posted By: RiffRaff Re: Dialog problems - 13/10/03 04:27 PM
There's no rclick for lists. Clicking over a list with the right key or the left key of the mouse is the same. if you want more mouse actions, try $mouse.key.
You may want to use this:
on *:mydialog:*:*: {
if ($devent != mouse) echo -s devent: $devent || did: $did || mouse.key: $mouse.key
}
As for the horizontal bar, I don't know. Every time I used a list, I used it with mdx and it has always worked.
Posted By: pheonix Re: Dialog problems - 13/10/03 04:31 PM
/did -z <name> <id> resizes the hsbar smile
Posted By: Jaakko Re: Dialog problems - 13/10/03 04:33 PM
hmm but

on *:dialog:ftp:sclick:1:{ echo -at $mouse.key }

on left click it echoes "0"
on middle nothing and on right nothing
Posted By: RiffRaff Re: Dialog problems - 13/10/03 04:41 PM
really?
with me, the left button triggered:
devent: sclick || did: 1 || mouse.key: 1
the right:
devent: sclick || did: 1 || mouse.key: 0

and the middle button did not trigger the event.
Posted By: Jaakko Re: Dialog problems - 13/10/03 04:55 PM
hmm i made a completely new dialog..

Code:
 
dialog menu {
  title "Menu"
  size -1 -1 330 85
  option dbu
  button "Delete", 1, 0 0 28 7
  button "Download", 2, 0 8 28 7
  list 3, 31 9 257 64, size
}
on *:dialog:menu:init:0:{ did -a menu 3 AHOPDFOHIADFPOHIADPFOHIADOPFHIAOPDFIHPIOADFH }
on *:dialog:menu:sclick:*:{ echo -at $mouse.key }
 


it still returns 0 only with left button otherwise nothing...

what version of mirc u using etc?
Posted By: RiffRaff Re: Dialog problems - 13/10/03 05:04 PM
You are right.
MDX's fault.
It only worked as I had said after I loaded MDX.
© mIRC Discussion Forums