Go Back   Winamp Forums > Skinning and Design > Modern Skins

 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 22nd December 2005, 13:04   #1
vestige93
Junior Member
 
vestige93's Avatar
 
Join Date: Dec 2005
Posts: 8
Popup Menu Problem

Hi,

I made a popup menu for my skin to change modes, but the check marks in the menu don't update. It changes from Normal to Shade and also to Mini, so I can't figure out why the marks don't change too. Here is my code:

mousetrap.onRightButtonDown(int x, int y) {
ChangeMode();
}

ChangeMode() {
PopupMenu popupModeChange;
Int intModeChange;

popupChangeMode = new PopupMenu;
popupChangeMode.addCommand("Normal", 1, (intMode == 1), 0);
popupChangeMode.addCommand("Shade", 2, (intMode == 2), 0);
popupChangeMode.addCommand("Mini", 3, (intMode == 3), 0);

intModeChange = popupChangeMode.popAtMouse();
if (intModeChange > -1) { setSkinMode(intModeChange); }
delete popupModeChange;
complete;
}

...........

setSkinMode(Int intMode) {
if (intMode == 1) {
containerMain.switchToLayout("Normal");
}
if (intMode == 2) {
containerMain.switchToLayout("Shade");
}
if (intMode == 1) {
containerMain.switchToLayout("Mini");
}


I did a search for popup menus but didn't find any with this exact problem.
vestige93 is offline   Reply With Quote
 
Go Back   Winamp 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