|
|
#1 |
|
Junior Member
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. |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|