|
|||
|
i'm struggling with this problem: if 'on' is checked, i want 'off' to be unchecked,and when 'off' is checked, i wan't 'on' to be unchecked.
i use this code: Code:
var checkSwitch = false;
Menu.onUpdateItem = function (identifier, state)
{
if (identifier == 'on') state.check = checkSwitch;
if (identifier == 'off') state.check = checkSwitch;
}
Menu.onCommand = function (identifier){{
if (identifier == 'off') checkSwitch = checkSwitch;
if (identifier == 'on') checkSwitch = checkSwitch;
}
|
|
|||
|
var checkSwitch = false;
Menu.onUpdateItem = function (identifier, state) { if (identifier == 'on') state.check = checkSwitch; else if (identifier == 'off') state.check = !checkSwitch; } Menu.onCommand = function (identifier) { if (identifier == 'off') checkSwitch = false; else if (identifier == 'on') checkSwitch = true; } |
|
|||
|
thanks that works great
![]() but i'm breaking myhead with this: i want to check c:\my.ini if yes = true, and when yes is true, 'yes' needs to be checked, if yes is false, 'no' needs to be checked. thanksin advantage ;D |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|