Trying to nest panels within panels

Moderator: Moderators

Trying to nest panels within panels

Postby curtiselaugh@gmail.com » Tue Jul 05, 2022 12:22 pm

I am building a simulation dashboard. I have created a Graphical User Interface diagram, and I have inserted a Frame. I would like to be able to display images based on sub-properties of the block, which is tied to this Frame. However, my end goal is to be able to visualize sub-sub-components of this parent block. Ideally I would go down 3 levels in some cases.

I can only get images to show up which are direct children of the owning Frame's system block. I create these by creating a panel, and associating a part block owned by that parent system block, and then dragging in the corresponding image switcher. This works; but when I then try to nest panels within this children panels, I see nothing.

I would like to be able to insert a nested panel into the frame, and allow it to display information when in certain states. Can I do this? It seems like Java Swing, which I've heard simulation toolkit is built around, could handle this type of complexity. I have yet been able to find out how to do this in Cameo.

Thanks.
curtiselaugh@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 13
Posts Rating:0
Joined: Tue Jun 14, 2022 11:08 am

Re: Trying to nest panels within panels

Postby bmoberley@strattechnologies.com » Fri Aug 26, 2022 1:48 pm

Yes this is possible. You need to use group boxes in the frame to navigate through the usage of lower level parts. The frame will be typed by a block and needs to be at a level higher than the blocks that own the values that reference the image. Then, use the part property of that block to type the group box at the next level down in the architecture. Never type a group box with a Block, only the usage of the block whose properties you want to access. To get the image switcher to work, make sure the group box has its "feature" set to the part property that matches the "represents" of the image switcher, and make sure the "config" of the group box is set to the image switcher. One thing to keep in mind is that if the group box isn't as large as the image, you will not see it when simulated. The group boxes to no auto-resize. They simply won't display the image unless they are large enough for the image.

I've attached a sample .mdZip "Stephanie's Sim" that shows an example of this.
You do not have the required permissions to view the files attached to this post.
bmoberley@strattechnologies.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:2
Joined: Thu Jul 08, 2021 1:37 pm

Re: Trying to nest panels within panels

Postby curtiselaugh@gmail.com » Wed Aug 31, 2022 3:01 pm

I ended up going with a workaround, but I'll see if your advice helps. I discovered that you had to nest parts, but I might not have set the group box's feature to the part property. Thanks for your help!
curtiselaugh@gmail.com
Forum Newbie
Forum Newbie
 
Posts: 13
Posts Rating:0
Joined: Tue Jun 14, 2022 11:08 am


Return to Cameo Simulation Toolkits

Who is online

Users browsing this forum: No registered users and 0 guests

cron