|
|
|
|
#1 |
|
Junior Member
Join Date: Aug 2002
Posts: 9
|
hey, how do I show a popup menu with custom commands when I right click a button?
|
|
|
|
|
|
#2 |
|
Junior Member
Join Date: Aug 2002
Posts: 9
|
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; } |
|
|
|
|
|
#3 |
|
Senior Member
|
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?
|
|
|
|
|
|
#4 |
|
Nothing to say...
Join Date: Sep 2000
Location: UK
Posts: 23,098
|
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. |
|
|
|
|
|
#5 |
|
Senior Member
|
yea, sorry, didn't check his post count and that...I found the stuff after I posted here.
|
|
|
|
|
|
#6 |
|
Major Dude
|
mind posting what you found?
Croquet is the only real form of happiness Proud member of the Correct Grammar Association™. (CGA) 'All of your bases belong to us!' |
|
|
|
|
|
#7 |
|
Senior Member
|
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. |
|
|
|
|
|
#8 |
|
Major Dude
|
thanks! I'm trying to learn the basics of maki, but there is precious little documentation out there.
Croquet is the only real form of happiness Proud member of the Correct Grammar Association™. (CGA) 'All of your bases belong to us!' |
|
|
|
|
|
#9 |
|
Major Dude
|
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! Published: OvalAmp | Scythe | Simple Amp(code) | PAD(code) | Classix10k | LayerONE (code) WIP: Aeschere | Manta | Winamp 5 SingleGUI Need some help? How to write a MAKI script | Custom Vis Script | Add a Notifier to Your Skin |
|
|
|
|
|
#10 |
|
Major Dude
|
Heh, dunno how i missed that one. I found that thread so useful in understanding the quirks of MAKI. Cheers, spoons!
Croquet is the only real form of happiness Proud member of the Correct Grammar Association™. (CGA) 'All of your bases belong to us!' |
|
|
|
|
|
#11 |
|
Senior Member
|
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...
|
|
|
|
|
|
#12 |
|
Major Dude
|
I certainly hope not. I hate stupid newbies so i try as hard as i possibly can not to be one.
Croquet is the only real form of happiness Proud member of the Correct Grammar Association™. (CGA) 'All of your bases belong to us!' |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|