Old 11th September 2002, 05:39   #1
artificeren
Junior Member
 
Join Date: Aug 2002
Posts: 9
Question popup menu

hey, how do I show a popup menu with custom commands when I right click a button?
artificeren is offline   Reply With Quote
Old 11th September 2002, 19:49   #2
artificeren
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;
}
artificeren is offline   Reply With Quote
Old 13th March 2004, 03:40   #3
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
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?
dodger758 is offline   Reply With Quote
Old 13th March 2004, 06:39   #4
Mr Jones
Nothing to say...
 
Mr Jones's Avatar
 
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.
Mr Jones is offline   Reply With Quote
Old 13th March 2004, 16:43   #5
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
yea, sorry, didn't check his post count and that...I found the stuff after I posted here.
dodger758 is offline   Reply With Quote
Old 13th March 2004, 18:37   #6
pukkaboy
Major Dude
 
pukkaboy's Avatar
 
Join Date: Jul 2000
Location: The United Kingdom of Fools.
Posts: 599
Send a message via ICQ to pukkaboy
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!'
pukkaboy is offline   Reply With Quote
Old 13th March 2004, 19:10   #7
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
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.
dodger758 is offline   Reply With Quote
Old 13th March 2004, 20:20   #8
pukkaboy
Major Dude
 
pukkaboy's Avatar
 
Join Date: Jul 2000
Location: The United Kingdom of Fools.
Posts: 599
Send a message via ICQ to pukkaboy
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!'
pukkaboy is offline   Reply With Quote
Old 15th March 2004, 08:48   #9
iPlayTheSpoons
Major Dude
 
iPlayTheSpoons's Avatar
 
Join Date: Aug 2001
Location: SJSU
Posts: 1,030
Send a message via AIM to iPlayTheSpoons
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!
iPlayTheSpoons is offline   Reply With Quote
Old 15th March 2004, 12:58   #10
pukkaboy
Major Dude
 
pukkaboy's Avatar
 
Join Date: Jul 2000
Location: The United Kingdom of Fools.
Posts: 599
Send a message via ICQ to pukkaboy
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!'
pukkaboy is offline   Reply With Quote
Old 15th March 2004, 18:24   #11
dodger758
Senior Member
 
dodger758's Avatar
 
Join Date: Apr 2003
Posts: 402
Send a message via AIM to dodger758
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...
dodger758 is offline   Reply With Quote
Old 15th March 2004, 20:42   #12
pukkaboy
Major Dude
 
pukkaboy's Avatar
 
Join Date: Jul 2000
Location: The United Kingdom of Fools.
Posts: 599
Send a message via ICQ to pukkaboy
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!'
pukkaboy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Skinning and Design > Modern Skins

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump