Versions Compared

Key

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

Web Application - DeviceChanged

...

Event 

Panel
bgColor#2c3c4c

Fired when the application is resized and the device changes

Member of of Web Application (PRIM_WEB.Application)

Details

The DeviceChanged event is fired whenever there is a change from one device size to another. The

The Device property identifies the currently active device.

Example

In this example, a different layout is applied based on the Device.

     Evtroutine Handling(#Sys_Web.DeviceChanged) 
Case (#Sys_Web.Device)
When (= Desktop)
#Com_owner.Layout <= #LayoutDesktop
When (= Mobile)
#Com_owner.Layout <= #LayoutMobile
When (= Tablet)
#Com_owner.Layout <= #LayoutTablet
Endcase
Endroutine

See also

All Component Classes

Technical Reference