cancel
Showing results for 
Search instead for 
Did you mean: 

View with a button to hide on left

Former Member
0 Kudos

I want to create a view that has a button on the upper right corner. When the button is pressed the view should hide on the left side and the view on the right side should occupy the space. and when the button is pressed again the view should be visible again as previous.

please advice.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

What you can do is put two transparent containers side by side.

When user presses the button you turn on the visibility of the left container.

You also change the width of the right container to make room for the left container.

When you press the button again you turn off visibility of left container and increase the width of the right container.

Q.e.d,.

Regards

Yuval

Edited by: yuval peery on Jan 9, 2011 8:42 PM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sachin,

Another alternative is to have a an extra view with 2 ViewUIElementContainers in a flow layout. Create 2 plugs (to_emptyview,to_view1).

You already have view1 and View2. The new one will be view3.

In the window make view3 as default view.

embed view1 and view2 in the ViewUIElementContainers respectively and also embed EmptyViews in each of the ViewUIElementContainers.

on action of your right button, fire the empty plug and in the other case fire the to-view1 plug.

In this way You do not have worry about the burden of Layout arrangements.