Web Application - Device Property

Device type on which the application is executing

Member of Web Application (PRIM_WEB.Application)

Data Type - Enumeration

Details

Device プロパティは、アプリケーションがピクセル幅に基づいて実行されているデバイスのサイズを識別します。
 
DeviceChanged イベントは、デバイスの変更があると常に起動されます。例: ブラウザのサイズ変更

次の値が利用できます。

列挙値説明
Desktop1200 ピクセルより大きい。
Mobile800 ピクセル未満。
Tablet800 と 1199 ピクセルの間

 

次の例では、デバイスにより異なるレイアウトが適用されます。
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