You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

Webアプリケーション - DeviceChangedイベント

アプリケーションがサイズ変更され、デバイスが変更された時に起動

Webアプリケーション (PRIM_WEB.Application) のメンバ

詳細

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

参照

すべてのコンポーネント クラス
テクニカル リファレンス

  • No labels