It's making more sense now.  I can indeed change the choice
programmatically by referencing the object defined in the callback
function call - in my case below that is 'obj'.  So the code below
forces the index to be 2 (Off) every time that menu item is selected, so
it no longer toggles.  


Code:
--------------------
                menu:addItem({
                        text = self:string("SQUEEZEEXT"),
                        style = 'item_choice',
                        iconStyle = "digital",
                        check = Choice(
                                "choice", 
                                { "On", "Off" },
                                function(obj, selectedIndex)
                                        log:info(selectedIndex)
                                        obj:setSelectedIndex(2)
                                end,
                                2
                        )
                })              
  
--------------------


That's a bit more chipped away......


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110170

_______________________________________________
jive mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive

Reply via email to