Question: Maplet question regarding enabling / disabling buttons

Hello, I am new here and hope to post in the right section. I am encountering a few problems with learning myself how to construct larger maplets. The first problem regards the simple enabling / disabling of a button with a check box. See the example code below. If the checkbox is selected, I would like to have the button enabled, and if the checkbox is not selected, it should be disabled. Simple as that, but I can't find out what I need to do to get the code working. The 'CB1'('value') statement is not of the correct type?? with(Maplets[Elements]): > maplet := Maplet( > Window('title' = "A Simple Maplet", > ["A simple maplet.", CheckBox['CB1']('onchange'='A2'),Button['B1']("OK", Shutdown())] > ), > Action['A2'](SetOption('B1'('enabled')='CB1'('value')) > )): > Maplets[Display](maplet); I do have a second problem regarding structuring a larger maplet. You can get the code constructing a maplet out to a separate statement in order to shorten the actual maplet statement. However, if I try to have a plotter statement outside the actual maplet statement, it does not work. Any experiences here? Thanks, Frank

Please Wait...