![]() |
popup menu
hey, how do I show a popup menu with custom commands when I right click a button?
|
figured it out, but for those in the future who want the easy answer, here's an excerpt from my script: ( changed a bit to protect the innocent )
// this shows the custom menu MyButton.onRightClick() { PopupMenu myMenu = new PopupMenu; myMenu.addCommand("My Custom Command 1", 1, false, false ); myMenu.addCommand("My Custom Command 2", 2, false, false ); Int result = myMenu.popAtMouse(); delete myMenu; if ( result == 1 ) { //do command 1 return; } if ( result == 2 ) { // do command 2 return; } } // this stops the normal system menu from showing MyButton.onRightButtonUp(int x, int y){ complete; } |
hey i know this post is as old as hell, but this might be useful to me. do you think you can post the script in all of it's entirety for me to F with in the near future?
|
Whadya think the chances are that artificeren is still reading this after nearly 2 years or so, given he made a total of 5 posts.
I suppose he could be the ultimate lurker. Search around there are tons of complete menu scripts in here. |
yea, sorry, didn't check his post count and that...I found the stuff after I posted here.
|
mind posting what you found?
|
http://forums.winamp.com/showthread....&pagenumber=14
that page and the 4 pages before it, but mostly that page. check plague's posts, especially the one with the attachment, they're without a doubt the most helpful. |
thanks! I'm trying to learn the basics of maki, but there is precious little documentation out there.
|
do you guys look for the answers?
there is a section in this forum called skinning tips and tricks. there is also a thread i authored called how to write a maki script. there is even an extensive post (http://forums.winamp.com/showthread....532#post803532) on how to make menus! |
Heh, dunno how i missed that one. I found that thread so useful in understanding the quirks of MAKI. Cheers, spoons!
|
yea i looked for the answers, it was a pain in the ass searching through each of the 14 pages of the thread on my 28k, but i found the answer a few hours after I posted here. then i wanted to help pukkaboy. i'm sure we aren't as bad as some of the other people around here...
|
I certainly hope not. I hate stupid newbies so i try as hard as i possibly can not to be one.
|
| All times are GMT. The time now is 21:00. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.