Difference between revisions of "TBitBtn/ja"

From Lazarus wiki
Jump to navigationJump to search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{TBitBtn}}
 
{{TBitBtn}}
  
'''TBitBtn''' [[image:tbitbtn.png]]は、その表面に描画されたビットマップを持つボタンを作成するコンポーネントである。TBitBtnはTWinControlの派生であり、[[Component Palette]]の[[Additional tab]]タブの下で利用できる。
+
'''TBitBtn''' [[image:tbitbtn.png]]は、その表面に描画されたビットマップを持つボタンを作成するコンポーネントである。TBitBtnはTWinControlの派生であり、[[Component Palette/ja]]の[[Additional tab/ja]]タブの下で利用できる。
  
To make usage of standard buttons a bit easier a TBitBtn has a property ''Kind'' that let you select a buttonkind like ''bkOk'' to create an [Ok] button with text and corresponding picture (accessible as ''Glyph'' and a modal-result 'mrOk').
+
標準のボタンを使用しやすくするために、TBitBtnには''Kind''というプロパティがある。このプロパティを使用すると、''bkOk''のようなボタンの種類を選択できる。これにより、テキストと対応する画像を持つ[OK]ボタンを作成できる(''Glyp''、モーダル結果 ''mrOk'')
  
 
[[image:component-TBitBtn.png]]
 
[[image:component-TBitBtn.png]]
  
Positioning of glyph and caption can be controlled by means of these properties:
+
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>は、<code>blGlyphLeft</code><code>blGlyphRight</code><code>blGlyphTop</code>、および<code>blGlyphBottom</code>の列挙型である。これは、それぞれのキャプションの左側、右側、上側、または下側にグリフが配置されるかどうかを決定する。デフォルトは<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>は、ボタンの端とグリフの間の距離(ピクセル単位)である。値が-1の場合、グリフとキャプションの組み合わせがボタン内で中央揃えになる。デフォルト値は<code>-1</code>である。
* <code>Spacing</code> 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. If <code>Margin</code> is -1, too, then glyph and caption will be equally distributed within the button area. Default: <code>4</code>.
+
* <code>Spacing</code>は、グリフとキャプションの間の距離(ピクセル単位)を示す。値が-1の場合、キャプションはグリフとボタンの端との間で中央揃えされる。また、Marginが-1の場合、グリフとキャプションはボタンの領域内で均等に配置される。デフォルト値は<code>4</code>である。
If you have several vertically stacked BitBtn components (with <code>Layout=blGlyphLeft</code>) on a form and want to left-align glyphs and captions set <code>Margin</code> and <code>Spacing</code> to some positive value, such as 4.
+
フォームに複数の縦に積み重ねられたBitBtnコンポーネント(<code>Layout=blGlyphLeft</code>)があり、グリフとキャプションを左揃えにしたい場合は、<code>Margin</code><code>Spacing</code>を4などの正の値に設定する。
  
==See also==
+
==以下も参照のこと==
 
* [[doc:lcl/buttons/tbitbtn.html|TBitBtn doc]]
 
* [[doc:lcl/buttons/tbitbtn.html|TBitBtn doc]]
* [[TButton]]
+
* [[TButton/ja]]
 
* [[TSpeedButton]]
 
* [[TSpeedButton]]
 
* [[TColorButton]]
 
* [[TColorButton]]
  
 
{{LCL Components/ja}}
 
{{LCL Components/ja}}

Latest revision as of 14:22, 25 March 2024

Deutsch (de) English (en) español (es) suomi (fi) français (fr) 日本語 (ja) polski (pl) русский (ru)

TBitBtn tbitbtn.pngは、その表面に描画されたビットマップを持つボタンを作成するコンポーネントである。TBitBtnはTWinControlの派生であり、Component Palette/jaAdditional tab/jaタブの下で利用できる。

標準のボタンを使用しやすくするために、TBitBtnにはKindというプロパティがある。このプロパティを使用すると、bkOkのようなボタンの種類を選択できる。これにより、テキストと対応する画像を持つ[OK]ボタンを作成できる(Glyp、モーダル結果 mrOk)。

component-TBitBtn.png

GlyphとCaptionの配置は、これらのプロパティを使用して制御できる:

  • Layoutは、blGlyphLeftblGlyphRightblGlyphTop、およびblGlyphBottomの列挙型である。これは、それぞれのキャプションの左側、右側、上側、または下側にグリフが配置されるかどうかを決定する。デフォルトはblGlyphLeftである。
  • Marginは、ボタンの端とグリフの間の距離(ピクセル単位)である。値が-1の場合、グリフとキャプションの組み合わせがボタン内で中央揃えになる。デフォルト値は-1である。
  • Spacingは、グリフとキャプションの間の距離(ピクセル単位)を示す。値が-1の場合、キャプションはグリフとボタンの端との間で中央揃えされる。また、Marginが-1の場合、グリフとキャプションはボタンの領域内で均等に配置される。デフォルト値は4である。

フォームに複数の縦に積み重ねられたBitBtnコンポーネント(Layout=blGlyphLeft)があり、グリフとキャプションを左揃えにしたい場合は、MarginSpacingを4などの正の値に設定する。

以下も参照のこと


LCL Components
Component Tab Components
Standard TMainMenu • TPopupMenu • TButton • TLabel • TEdit • TMemo • TToggleBox • TCheckBox • TRadioButton • TListBox • TComboBox • TScrollBar • TGroupBox • TRadioGroup • TCheckGroup • TPanel • TFrame • TActionList
Additional TBitBtn/ja • TSpeedButton/ja • TStaticText/ja • TImage/ja • TShape/ja • TBevel/ja • TPaintBox/ja • TNotebook/ja • TLabeledEdit/ja • TSplitter/ja • TTrayIcon/ja • TControlBar/ja • TFlowPanel/ja • TMaskEdit/ja • TCheckListBox/ja • TScrollBox/ja • TApplicationProperties/ja • TStringGrid/ja • TDrawGrid/ja • TPairSplitter/ja • TColorBox/ja • TColorListBox/ja • TValueListEditor/ja
Common Controls TTrackBar • TProgressBar • TTreeView • TListView • TStatusBar • TToolBar • TCoolBar • TUpDown • TPageControl • TTabControl • THeaderControl • TImageList • TPopupNotifier • TDateTimePicker
Dialogs TOpenDialog • TSaveDialog • TSelectDirectoryDialog • TColorDialog • TFontDialog • TFindDialog • TReplaceDialog • TTaskDialog • TOpenPictureDialog • TSavePictureDialog • TCalendarDialog • TCalculatorDialog • TPrinterSetupDialog • TPrintDialog • TPageSetupDialog
Data Controls TDBNavigator/ja • TDBText/ja • TDBEdit/ja • TDBMemo/ja • TDBImage/ja • TDBListBox/ja • TDBLookupListBox/ja • TDBComboBox/ja • TDBLookupComboBox/ja • TDBCheckBox/ja • TDBRadioGroup/ja • TDBCalendar/ja • TDBGroupBox/ja • TDBGrid/ja • TDBDateTimePicker/ja
Data Access TDataSource/ja • TCSVDataSet/ja • TSdfDataSet/ja • TBufDataset/ja • TFixedFormatDataSet/ja • TDbf/ja • TMemDataset/ja
System TTimer • TIdleTimer • TLazComponentQueue • THTMLHelpDatabase • THTMLBrowserHelpViewer • TAsyncProcess • TProcessUTF8 • TProcess • TSimpleIPCClient • TSimpleIPCServer • TXMLConfig • TEventLog • TServiceManager • TCHMHelpDatabase • TLHelpConnector
Misc TColorButton • TSpinEdit • TFloatSpinEdit • TArrow • TCalendar • TEditButton • TFileNameEdit • TDirectoryEdit • TDateEdit • TTimeEdit • TCalcEdit • TFileListBox • TFilterComboBox • TComboBoxEx • TCheckComboBox • TButtonPanel • TShellTreeView • TShellListView • TXMLPropStorage • TINIPropStorage • TJSONPropStorage • TIDEDialogLayoutStorage • TMRUManager • TStrHolder
LazControls TCheckBoxThemed • TDividerBevel • TExtendedNotebook • TListFilterEdit • TListViewFilterEdit • TLvlGraphControl • TShortPathEdit • TSpinEditEx • TFloatSpinEditEx • TTreeFilterEdit • TExtendedTabControl •
RTTI TTIEdit • TTIComboBox • TTIButton • TTICheckBox • TTILabel • TTIGroupBox • TTIRadioGroup • TTICheckGroup • TTICheckListBox • TTIListBox • TTIMemo • TTICalendar • TTIImage • TTIFloatSpinEdit • TTISpinEdit • TTITrackBar • TTIProgressBar • TTIMaskEdit • TTIColorButton • TMultiPropertyLink • TTIPropertyGrid • TTIGrid
SQLdb TSQLQuery/ja • TSQLTransaction/ja • TSQLScript • TSQLConnector • TMSSQLConnection • TSybaseConnection • TPQConnection • TPQTEventMonitor • TOracleConnection • TODBCConnection • TMySQL40Connection • TMySQL41Connection • TMySQL50Connection • TMySQL51Connection • TMySQL55Connection • TMySQL56Connection • TMySQL57Connection • TSQLite3Connection/ja • TIBConnection • TFBAdmin • TFBEventMonitor • TSQLDBLibraryLoader
Pascal Script TPSScript • TPSScriptDebugger • TPSDllPlugin • TPSImport_Classes • TPSImport_DateUtils • TPSImport_ComObj • TPSImport_DB • TPSImport_Forms • TPSImport_Controls • TPSImport_StdCtrls • TPSCustomPlugin
SynEdit TSynEdit • TSynCompletion • TSynAutoComplete • TSynMacroRecorder • TSynExporterHTML • TSynPluginSyncroEdit • TSynPasSyn • TSynFreePascalSyn • TSynCppSyn • TSynJavaSyn • TSynPerlSyn • TSynHTMLSyn • TSynXMLSyn • TSynLFMSyn • TSynDiffSyn • TSynUNIXShellScriptSyn • TSynCssSyn • TSynPHPSyn • TSynTeXSyn • TSynSQLSyn • TSynPythonSyn • TSynVBSyn • TSynAnySyn • TSynMultiSyn • TSynBatSyn • TSynIniSyn • TSynPoSyn
Chart TChart • TListChartSource • TRandomChartSource • TUserDefinedChartSource • TCalculatedChartSource • TDbChartSource • TChartToolset • TChartAxisTransformations • TChartStyles • TChartLegendPanel • TChartNavScrollBar • TChartNavPanel • TIntervalChartSource • TDateTimeIntervalChartSource • TChartListBox • TChartExtentLink • TChartImageList
IPro TIpFileDataProvider • TIpHtmlDataProvider • TIpHttpDataProvider • TIpHtmlPanel
Virtual Controls TVirtualDrawTree • TVirtualStringTree • TVTHeaderPopupMenu