Overlap Buttons

Hi guys,

I want to create a button layout that should be above the main Window.

It means if i got a vertical scroll bar the button layout should remain at a fix position and the below page should scroll.

Please Reply

Regards
Tarun

Hi,

You could use the following structure:

  • Main layout (window content) is VerticalLayout with setSizeFull(). It will contain layout for buttons and for the other contents.
  • Button layout is a HorizontalLayout with width 100% and height undefined.
  • Contents is Panel with setSizeFull(), but the contents of this panel should have width 100% and height undefined - thus you will get the vertical scrollbar.
  • In your main layout you should set panel’s expand ratio to 1.0f => it will consume all the space that is not used by the buttons.


best regards
sasha