Skip to content
MSN

rclick

A TG007 community discussion started by Nimbus03.

Discussion 15 posts
Page 1 of 1
Open
Topic #2233 · 15 published posts · 1,598 views

how can i get the rclick event to work on a list in a dialog, it doesn't seem to work for me

"the important thing was, that i had an onion on my belt, which was the style at the time"

On *:Dialog:dialogName:rclick:Idnumberofthelist:{ blah blah } 

 

yeah i've tried that, and it doesn't work

i want it to work like a normal left click, i want it to select whatever line i click on with the right mouse button, but it doesn't select anything, is it possible to do that?

"the important thing was, that i had an onion on my belt, which was the style at the time"

On *:Dialog:dialog name:sclick:id:{

tokenize 32 $did($did,1)

if ($1 == rclick) { command here }

if ($1 == dclick) { command here }

}

 

replacing id with the id you want it to work on

replacing command here with what you need it to do

replacing dialog name with the name of the dialog

 

this code is for right click and double click on the same id

 

 

Edited Dec 16, 2004 12:35 AM by OZZY_10â„¢

My code does NOT have bugs. It just develops random features.

In other words you want it to highlight like the left click does? It might not highlight the item like the left click does, but it should select it nonetheless. Of course you will have to have the command in there such as $did(id).seltext. The .seltext event makes it know what item it is you want the command to work for in the list. Can you post your code here, and we will try to help you?

i'm making a popup, so i got this so far

 

alias menu {
 var %a = $gettok($dll(MPopup.dll,MPCreateMenu,menu),2,32)
 dll MPopup.dll MPAddItem %a > 1 0 0 delete > -
 dll MPopup.dll MPopup menu > $mouse.dx $mouse.dy top top left
}

 

and to call it up, i use the right click event

 

on *:dialog:bot_talk:rclick:1:{
 menu
}

 

but it wont work, i try it with sclick, and it comes up ok, but when i try rclick, nothing happens, it's like my mouse button doesn't even work lol

i must be missing something, or probs it's not even possible, hope you can help

"the important thing was, that i had an onion on my belt, which was the style at the time"

Have you seen any error messages when you right click? Also, is the MPopup.dll in your main folder, or is it located in another folder? If it is located in another folder then you will need to provide a path to the dll in order for it to work. Can you tell me if any error messages you see when you right click in the list?

the dll works fine, it comes up alright when i use the normal sclick, it just doesn't work with rclick

"the important thing was, that i had an onion on my belt, which was the style at the time"

okay, try this...

 

alias menu {
if (%clicked == on) {
var %a = $gettok($dll(MPopup.dll,MPCreateMenu,menu),2,32)
dll MPopup.dll MPAddItem %a > 1 0 0 delete > -
dll MPopup.dll MPopup menu > $mouse.dx $mouse.dy top top left
unset %clicked
 }
}
on *:dialog:bot_talk:*:*:{
if ($devent == rclick) && ($did == 1) { 
 set %clicked on
 menu
 }
}

 

take a look at what i posted, it works, i use the same code

My code does NOT have bugs. It just develops random features.

what does tokenize 32 $did($did,1) do cos i keep getting an error message whenever i just click on the dialog

Invalid parameters: $did (line 29, test.mrc)

"the important thing was, that i had an onion on my belt, which was the style at the time"

instead of using

$did($did,1)

try

$did(1)

 

or if this isn'tgoing to be put in a dialog event use this.

 

$did(bot_talk,1)

Edited Dec 16, 2004 5:54 AM by Warrior124

alias menu {
 var %a = $gettok($dll(MPopup.dll,MPCreateMenu,menu),2,32)
 dll MPopup.dll MPAddItem %a > 1 1 0 delete > -
 dll MPopup.dll MPopup menu > $mouse.dx $mouse.dy top top left
}

on *:dialog:test:rclick:*:{
 menu
}

 

that code works if i click on any part of the dialog with the right button except for the list and the buttons, does that mean i need to do something to the list? like something with the mdx dll? cos the xdcc browser thing uses the same popup dll and can bring up popups with a rclick on a list, but those lists are in treeview and listview, but the thing is i've made mine into listview and tree view aswell and still nothing happens, so maybe i'm mising something with the mdx dll and i don't know what, hope you can help

 

thx

Edited Dec 16, 2004 6:09 PM by Nimbus03

"the important thing was, that i had an onion on my belt, which was the style at the time"

i finaly got it working now, ozzy's code did actualy work properly, thx man

and thx warrior for all ya help aswell

"the important thing was, that i had an onion on my belt, which was the style at the time"

np

My code does NOT have bugs. It just develops random features.