Web Application - DeviceChanged Event

Fired when the application is resized and the device changes

Member of Web Application (PRIM_WEB.Application)

Details

DeviceChanged イベントはデバイス サイズが別のものに変更されると常に起動します。
 
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
re>

 
 

See also

All Component Classes

Technical Reference

EPC142030 February 2019