Popup and lsbox Thread last updated on 2003-07-09 21:16:15

Posted by member 42328 on 2003-07-08 22:06:35

I've got my lsbox almost completely configured (until the rightclick bangs come out in 2.30 that is). I say almost because I've got some confusion as to where the !Popup is added to my lable. I'm using *ModuleHook !LabelLsBoxHook to add the label. The confusion is because there is absolutely NO reference to !Popup in any of my .rc's and includes. Changing the LsBoxOnRightClick var changes what is actually happening on the right click for label. However, the right-click doesn't work anywhere BUT on label. Does anybody know where this implementation is? Another lsbox undocumented feature? It's not coded into label anywhere and I can't look at the source for lsbox since it doesn't exist.

-Jon

Posted by member 2112 on 2003-07-08 23:07:09 link

I probably don't understand your problem properly but when I set LsBoxOnRightClick !none the popup does not appear when right clicking on any labels. I'm using version 2.95.

Posted by member 1 on 2003-07-08 23:14:55 link

we got it fixed on irc. tnl happened to have the right click shortcut code for LSBoxes.

Posted by member 37809 on 2003-07-08 23:28:10 link

The right click syntax for lsbox shortcuts is documented in lsbox3.0-pre, though the example, also given, isn't updated.

Posted by member 503 on 2003-07-09 17:54:54 link

Label passes mouse clicks to the box, if no action is assigned.

Posted by member 42328 on 2003-07-09 21:16:15 link

The problems were two fold. First of all, I couldn't get anythign to happen except for label. It just so happens that label allows lsbox to process the LsBoxOnRightClick message. That part was working. However, I had set the entire lsbox as a draggable area and the draggable area overrides the LsBoxOnRightClick. Altering the draggable area corrected that problem.

Lastly, I installed the lsbox3.0-pre and used the right click code to get it to work for my shortcut. You can do this with the following code:

*Shortcut "Tasks/Popup" $vartaskx$ $vartasky$ tasks.png taskshov.png tasks.png #1 [!popuptasks][!popup]

It is kind of documented, but its not very obvious.

-Jon