Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   Modern Skins (http://forums.winamp.com/forumdisplay.php?f=123)
-   -   popup menu (http://forums.winamp.com/showthread.php?t=104680)

artificeren 11th September 2002 05:39

popup menu
 
hey, how do I show a popup menu with custom commands when I right click a button?

artificeren 11th September 2002 19:49

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;
}

dodger758 13th March 2004 03:40

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?

Mr Jones 13th March 2004 06:39

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.

dodger758 13th March 2004 16:43

yea, sorry, didn't check his post count and that...I found the stuff after I posted here.

pukkaboy 13th March 2004 18:37

mind posting what you found?

dodger758 13th March 2004 19:10

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.

pukkaboy 13th March 2004 20:20

thanks! I'm trying to learn the basics of maki, but there is precious little documentation out there.

iPlayTheSpoons 15th March 2004 08:48

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!

pukkaboy 15th March 2004 12:58

Heh, dunno how i missed that one. I found that thread so useful in understanding the quirks of MAKI. Cheers, spoons!

dodger758 15th March 2004 18:24

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...

pukkaboy 15th March 2004 20:42

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.