yet another revive of the same :P
i dont see this in help file but just to ask here...
since i have side listbox in @window
can that listbox have popup menu (with right click)
like you create for normal @window ?
Depending on your @window size etc... you can do something like this...
menu @window {
rclick:{
;The inrect would be in rectangle where you have to
;make an
;hidden rectangle to which the mouse events can occur
if ($inrect(x,y,x,y,w,h)) { do stuff here }
}
}
or if you have trouble finding the rectangle of your @window in the listbox do... this..
menu @window {
rclick:{ echo -a The X of my mouse click is $mouse.x and the Y of my mouse is $mouse.y }
}
the way the inrect works is you need a point which is point left top corner to bottom right corner... then the height and width total of your rectangle.