Difference between revisions of "TBitBtn/ja"
From Lazarus wiki
Jump to navigationJump to searchLine 7: | Line 7: | ||
[[image:component-TBitBtn.png]] | [[image:component-TBitBtn.png]] | ||
− | + | GlyphとCaptionの配置は、これらのプロパティを使用して制御できる: | |
* <code>Layout</code> is an enumeration of <code>blGlyphLeft</code>, <code>blGlyphRight</code>, <code>blGlyphTop</code> and <code>blGlyphBottom</code> which determines whether the glyph will be placed at the left, right, above or below the caption, respectively. Default: <code>blGlyphLeft</code>. | * <code>Layout</code> is an enumeration of <code>blGlyphLeft</code>, <code>blGlyphRight</code>, <code>blGlyphTop</code> and <code>blGlyphBottom</code> which determines whether the glyph will be placed at the left, right, above or below the caption, respectively. Default: <code>blGlyphLeft</code>. | ||
* <code>Margin</code> is the distance between the edge of the button and glyph, in pixels. The value -1 means that the combination of glyph and caption is centered within the button. Default: <code>-1</code>. | * <code>Margin</code> is the distance between the edge of the button and glyph, in pixels. The value -1 means that the combination of glyph and caption is centered within the button. Default: <code>-1</code>. |
Revision as of 23:26, 24 March 2024
│
Deutsch (de) │
English (en) │
español (es) │
suomi (fi) │
français (fr) │
日本語 (ja) │
polski (pl) │
русский (ru) │
TBitBtn は、その表面に描画されたビットマップを持つボタンを作成するコンポーネントである。TBitBtnはTWinControlの派生であり、Component Palette/jaのAdditional tab/jaタブの下で利用できる。
標準のボタンを使用しやすくするために、TBitBtnにはKindというプロパティがある。このプロパティを使用すると、bkOkのようなボタンの種類を選択できる。これにより、テキストと対応する画像を持つ[OK]ボタンを作成できる(Glyp、モーダル結果 mrOk)。
GlyphとCaptionの配置は、これらのプロパティを使用して制御できる:
Layout
is an enumeration ofblGlyphLeft
,blGlyphRight
,blGlyphTop
andblGlyphBottom
which determines whether the glyph will be placed at the left, right, above or below the caption, respectively. Default:blGlyphLeft
.Margin
is the distance between the edge of the button and glyph, in pixels. The value -1 means that the combination of glyph and caption is centered within the button. Default:-1
.Spacing
is the distance between the glyph and the caption, in pixels. The value -1 means that the caption is centered between glyph and button edge. IfMargin
is -1, too, then glyph and caption will be equally distributed within the button area. Default:4
.
If you have several vertically stacked BitBtn components (with Layout=blGlyphLeft
) on a form and want to left-align glyphs and captions set Margin
and Spacing
to some positive value, such as 4.
以下も参照のこと