Group Abstract Group Abstract

Message Boards Message Boards

1
|
7.7K Views
|
3 Replies
|
2 Total Likes
View groups...
Share
Share this post:

A question on using dynamic control objects

3 Replies

Hi Lissa, Thanks for the suggestion. Much appreciated. All the best, Ian

POSTED BY: Ian Williams

Sorry, I hadn't seen the second notebook with your solution using DynamicModule. Nice!

Dear Ian, maybe the following solution is of interest to you. I don't know how to do it using DynamicModule, so I used Manipulate instead.

    opts = Association[
       "a" -> {"dog", "cat", "horse"},
       "b" -> {"car", "boat", "plane"},
       "c" -> {"apple", "pear", "banana"}
       ];
    Framed[Labeled[Column[
       {Manipulate[opt2 = {};
         Labeled[CheckboxBar[Dynamic@opt2, opts[opt1]], 
          Style["Select Options", Bold], Top],
         {{opt1, "b", ""}, {"a", "b", "c"}, PopupMenu}, Paneled -> False],
        Dynamic@opt2}], Style["Main Menu", Bold], Top], 
     Background -> LightBlue]
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard