Scale メソッド (PRIM_ANIM.Scale)

サイズの変化をアニメーション化

祖先 - AnimationItemクラス (PRIM_ANIM.AnimationItem) オブジェクト (PRIM_OBJT)

詳細

Scale アニメーションは、 managed コントロールの ScaleHeightScaleWidth を変更します。

アニメーションが完了すると、コントロールの ScaleHeight および ScaleWidth は指定された ScaleHeight および ScaleWidth と同じになります。

ほとんどの要件では、 Scale メソッドは簡単なソリューションです。

この例では、マウスがいずれかのラベルに入ると、それがアニメーション項目に添付され、アニメーションが開始されます。 

アニメーションの最初の部分はラベルを大きくし、次に 100 ミリ秒の遅延後に元のサイズに戻します。 

マウスがその境界に入ると、ラベルがジャンプしたように見える効果があります。 

     Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<2015Indigo>) 
  
Define_Com Class(#PRIM_VS.Style) Name(#Style2) Backgroundbrush(#Brush2)
Define_Com Class(#PRIM_VS.SolidBrush) Name(#Brush2) Color(Theme400)

Define_Com Class(#PRIM_LABL) Name(#Label1) Displayposition(3) Ellipses(Word) Height(65) Left(64) Parent(#COM_OWNER) Tabposition(3) Tabstop(False) Top(72) Verticalalignment(Center) Width(105) Alignment(Center) Style(#Style2)
Define_Com Class(#PRIM_LABL) Name(#Label2) Displayposition(2) Ellipses(Word) Height(65) Left(288) Parent(#COM_OWNER) Tabposition(2) Tabstop(False) Top(72) Verticalalignment(Center) Width(105) Alignment(Center) Style(#Style2)
Define_Com Class(#PRIM_LABL) Name(#Label3) Displayposition(1) Ellipses(Word) Height(65) Left(176) Parent(#COM_OWNER) Tabposition(1) Tabstop(False) Top(72) Verticalalignment(Center) Width(105) Alignment(Center) Style(#Style2)
Define_Com Class(#prim_anim) Name(#Animation)
Define_Com Class(#prim_anim.Scale) Name(#Animation1) Parent(#Animation) Scaleheight(110) Scalewidth(110) Duration(100)
Define_Com Class(#prim_anim.Scale) Name(#Animation2) Parent(#Animation) Starttime(100) Duration(100)
Evtroutine Handling(#Label1.MouseEnter #Label2.MouseEnter #Label3.MouseEnter) Com_Sender(#Sender)
#Animation1.Manage #Animation2.Manage <= #Sender
#Animation.Start
Endroutine

End_Com

プロパティ

名前

記述

ComponentClassName

コンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承

ComponentMembers

このコンポーネントの全てにアクセスできるようにします。 オブジェクト (PRIM_OBJT) より継承

ComponentPatternName

コンポーネントのクラスを制限します。 オブジェクト (PRIM_OBJT) より継承

ComponentTag

インスタンス用に値を格納できる汎用スペース オブジェクト (PRIM_OBJT) より継承

ComponentType

ComponentTypeではコンポーネントのタイプ情報にアクセスできます。 オブジェクト (PRIM_OBJT) より継承

ComponentTypeName

ComponentTypeName十分適格なコンポーネントのクラス名です。 オブジェクト (PRIM_OBJT) より継承

Duration

アニメーションを完了までのにかかる時間(ミリ秒) AnimationItemクラス (PRIM_ANIM.AnimationItem) より継承

Manage

アニメーションに影響を受けるコントロールへの参照

Name

コンポーネントの名前 オブジェクト (PRIM_OBJT) より継承

OriginLeft

コントロールをサイズ変更する、コントロール内の横方向の地点

OriginTop

コントロールをサイズ変更する、コントロール内の縦方向の地点

Owner

コンポーネントのオーナーです。 オブジェクト (PRIM_OBJT) より継承

Parent

このアイテムがあるアニメーションへの参照 AnimationItemクラス (PRIM_ANIM.AnimationItem) より継承

ScaleHeight

アニメーション終了時のコントロールの高さ(パーセント)

ScaleWidth

アニメーション終了時のコントロールの幅(パーセント)

StartTime

アニメーションが開始するまでの待ち時間(ミリ秒) AnimationItemクラス (PRIM_ANIM.AnimationItem) より継承

イベント

名前

記述

CreateInstance

コンポーネントを作成する時にCreateInstanceのイベントを実行します。 AnimationItemクラス (PRIM_ANIM.AnimationItem) より継承

DestroyInstance

コンポーネントが解除される前にDestroyInstanceのイベントを実行します。 AnimationItemクラス (PRIM_ANIM.AnimationItem) より継承


参照

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

  • No labels