hiding and displaying lines

D

demo

I would like to create a master and hide and display parts of the shape
depending on the configuration the user would like. I would like the user to
right click and display these options.
 
M

Michel LAPLANE

You can design you shape as separate shape, group them and hide as needed
with Geometry.Noshow cell in the shapesheet geometry section of the shape.
You can also design one shape with several geometry and hide them with the
Geometryi.Noshow cell as well.
Hope it can help
 
D

demo

How would I go about hiding and displaying these geometries? I would like to
have this option availiable with the right mouse button.
 
M

Michel LAPLANE

Try this: Create a shape a rectangle for example add a custom property that
can be call "Show" and of boolean type.
Select the shape and open the shapesheet. replace the value of the
Geometry1.NoShow with the value of the custom property. You must see
"Prop.Row_1" in the Geometry1.NoShow cell instead of FALSE. When you change
the value of the custom property the shape will appear of disappear.
If you shape has several geometry you can do the same with the
Geometry2.NoShow and so on.
Reminder: to create several geometry for one shape, create the first shape
for example a rectangle. Select it and in maintaining the controlkey and the
shiftkey pressed draw an other shape a circle for example. You will see that
a geometry2 is created in the shapesheet.
 
D

demo

OK, that is cool. Now can you explain to me how I can set that up and toggle
the show/ no show with a right click of the mouse. I have seen that menus can
be installed that will come up when the right button is clicked then selected
and these geometries will show or go away.

Thanks for the help so far.

Derek
 
D

demo

Would you please let me know how to toggle the properties for show no show on
or off by using the right mouse click button.

Thanks,

Derek
 
M

Michel LAPLANE

In the shapesheet you have a section that you can add and that is called
action ("Insert=>section").You can define here the right click menu of a
shape. Just modify the custom property in the action cell of the action row.
You can for example put in the Action cell the formula
"SETF(GETREF(Prop.Row_1),NOT(Prop.Row1))" and in the Menu cell "Show"
Each time you select the context menu command Show it will change the
visibility of the geometry.
 
P

Paddy

demo said:
Would you please let me know how to toggle the properties for show no show
on
or off by using the right mouse click button.

Download the small file - a simple face with right-click menu for
smile-frown, here:

http://tinyurl.com/mqgb3

Open the file, play with the right-click menu, then open its Shape Sheet
(select the shape; menu Window | Show ShapeSheet) to see how objects are
shown or not shown.

In this shape, objects shown by Geometries 1 and 3 are NoShow=False (ie
shown all the time); Geometries 2, 4 are NoShow NOT Frown (ie shown for
Frown but not Smile); Geometries 5,6 are NoShow NOT Smile (ie shown for
Smile but not Frown)

Paddy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top