View Full Version : Dropdown listboxes or other menus
The Rhino
24th November 2001, 12:37
:confused: is there some sort of way i can make dropdown listboxes like the ones in the Gamma Controls or even better is there a way i can make another menu like the winamp system menu (The only menu in winamp3)
Naamloos
24th November 2001, 13:27
Good point...
I haven't seen somewhere how to skin that, I don't think it's in the skin system yet.. but I can be wrong...
Lucid DM
24th November 2001, 18:41
On the boX0r skin, the little rotating spiral thing has a menu for slow-fast.
The Rhino
24th November 2001, 19:04
Good point Lucid DM i forgot about that one i will check that out
The Rhino
24th November 2001, 19:32
I checked out the winamp 3 SDK and this is what i came up with
here is the code for the boxor popup menu
This must be in a MAKI File
The code for that was probably something like this
Class AnimatedLayer AnimatedLayerHint;
Global PopupMenu popuprotor;
System.onScriptUnloading() {
delete popuprotor;
}
System.onScriptLoaded() {
popuprotor = new PopupMenu;
popuprotor.addCommand("Stop", 1, 0, 0);
popuprotor.addCommand("Slow", 2, 0, 0);
popuprotor.addCommand("Moderate", 3, 0, 0);
popuprotor.addCommand("Fast", 4, 0, 0);
}
The Rhino
24th November 2001, 19:36
I will try working on dropdown listboxes and post that up if i figure it out
lunarboy1
27th November 2001, 02:23
constructin your own popupmenu isn't that bad. Take a look:
System.onScriptLoading()
{
my_menu = new popupmenu;
my_menu.addCommand( "Do some shit", 0, 0, 0 );
my_menu.addCommand( "Do other shit", 1, 0, 0 );
}
whatever_gui_object_you_want.onRightButtonDown()
{
int i;
i = my_menu.popAtMouse();
if( i == 0 )
{
/* Do Some Shit */
}
else if( i == 1 )
{
/* Do Other Shit */
}
}
In other words... the number that you assign to the second argument of the addcommand() function is the number that the popatmouse() function returns when that action is selected. Also make sure that you delete the popupmenu in the onscriptunloaded() function.
The event function can also be changed to when ever you want the menu to pop up. Check std.mi in the lib folder of the Winamp3 folder for all the events and functions that u can use with popupmenus.
Naamloos
27th November 2001, 05:50
Current version: v0.299
:rolleyes:
No updates?
Lunarboy1 always searching for new possibilities:)
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.