Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Multiple layouts can be created to target specific device sizes. For example, if the browser is resized to portrait rather than landscape, you might choose to arrange application pieces down the page rather than across. For LANSA, this is as easy as checking the height and width and applying the appropriate layout:


Evtroutine Handling(#Com_owner.SizeChanged)
If (#Com_Owner.Height > #Com_Owner.Width)
#Com_owner.LayoutManager <= #Layout1
Else
#Com_owner.LayoutManager <= #Layout2
Endif
Endroutine


Layout Managers are an enormously powerful feature and further reading on the subject is encouraged. For more information, refer to Layout Managers in What the Application will look like in Creating Graphical User Interface Applications in the Visual LANSA Developer Guide.