


 
 
 
 
 
 
 |
DelphiXE3 [FMX]コーナーボタン(CornerButton) 2013/10/11 |
前頁で[Additional]内の「SpeedButtonp」(スピードボタン)について書きましたので次は、同じく[Additional]内の「CornerButton」(コーナーボタン)について見ていきます。Delphi2010・VCLアプリケーションには無いと思われます。
 |  |


 |
(ヘルプより)
CanFocus
現在のコントロールがフォーカス可能かどうかを示します。
CanFocus は、フォーカス可能な場合には True、そうでなければ False となります。 |
とありますが、このコントロールの特性上、このプロパティ値に関わらずフォーカスは持てません。
Corners
どの角が、CornerType、XRadius、YRadiusの各プロパティの影響を受けるのかを示します。
デフォルトでは、4 つすべての角が、Corners に含まれます。セット内で定義される角を使用すると、角のカスタマイズの影響を受ける角セットに、角を追加したり削除したりするには、TCorners セット内で定義される角を使用します。Cornersが空セットだった場合、CornerType、XRadius、YRadiusの各プロパティによる視覚的な効果はありません。 |
CornerType(※1)
コントロールの角の縦横比を示します。
CornerType は、TCornerType の値を表します。CornerType プロパティを変更すると、コントロールの角の縦横比が変わります。
メモ: Corners が空セットだった場合、または、XRadius および YRadius プロパティが両方とも 0 だった場合、CornerType プロパティの変更による視覚的な効果はありません。 |
Sides
コントロールが表示されるサイドを示します。
デフォルトでは、コントロールのすべてのサイドが表示されるため、Sides にはコントロールの 4 つすべてのサイドが含まれています。コントロールからサイドを追加または削除するには、TSides セット内で定義されるサイドを使用します。 |
サイド=4辺の輪郭線ですね。
全てオフにしても角部分は
消えずに残りますので注意?
XRadius
水平方向での、角からカスタマイズの開始点への距離を示します。
XRadius の最大値は、コントロールの幅の半分です。 XRadius がこの値より大きい場合には、最大値が使用されます。 |
YRadius
垂直方向での、角からカスタマイズの開始点への距離を示します。
YRadius の最大値は、コントロールの高さの半分です。 YRadius がこの値より大きい場合には、最大値が使用されます。 |
XRadius=X方向丸め半径
YRadius=Y方向丸め半径
ですね。 |
(ヘルプより)
TButton コントロールを表し、さらに TButton コントロールの角をカスタマイズする手段を提供します。
Corners を使用すると、カスタマイズ対象の角を指定することができます。
CornerType、XRadius、および YRadius を使ってカスタマイズを行います。 |
CornerType(※1)
ctRound |  | 角が丸くなります。四角形の辺の間に四角形の外側に向かう弧が表示されます。四角形の辺上にある弧の両端は、四角形の角からの距離 XRadius(横方向)および YRadius(縦方向)で定義されます。 |
ctBevel |  | 角が斜めになります。四角形の辺の間に斜めの線が表示されます。 |
ctInnerRound |  | 角が丸くなります。四角形の辺の間に四角形の内側に向かう弧が表示されます。 |
ctInnerLine |  | 四角形の辺の間に 3 本の連結された直線が表示されます。その角は四角形の内側に向かいます。 |
このコーナーボタンは、スピードボタンと同様、フォーカスを持つ事が出来ません。ですので、ボタンの、というよりは、スピードボタンの派生タイプのような感じがします。
それでは各スタイルでの画面状態を確認しておきます。
なし |  |
Air.Style |  |
Amakrits.Style |  |
AquaGraphite.style |  |
Blend.Style |  |
Dark.Style |  |
GoldenGraphite.Style |  |
Light.Style |  |
MetropolisUIBlack.Style |  |
MetropolisUIBlue.Style |  |
MetropolisUIDark.Style |  |
MetropolisUIGreen.Style |  |
RubyGraphite.style |  |
Transparent.Style |  |
|
|
バッチファイル
BASIC
C言語のお勉強
拡張子な話
DOSプログラム
Delphi
>Delphi入門編
>Delphi2010
>DelphiXE3
▲2013/10/11
2013/10/11
▼2013/10/12
シェアウェア
Script!World
データベース
|