本文整理汇总了C++中JXStaticText::SetFontSize方法的典型用法代码示例。如果您正苦于以下问题:C++ JXStaticText::SetFontSize方法的具体用法?C++ JXStaticText::SetFontSize怎么用?C++ JXStaticText::SetFontSize使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JXStaticText
的用法示例。
在下文中一共展示了JXStaticText::SetFontSize方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JXInputField
void
CBExtEditorDialog::BuildWindow
(
const JBoolean editTextLocally,
const JCharacter* editTextFileCmd,
const JCharacter* editTextFileLineCmd,
const JBoolean editBinaryLocally,
const JCharacter* editBinaryFileCmd
)
{
// begin JXLayout
JXWindow* window = jnew JXWindow(this, 450,220, "");
assert( window != NULL );
itsEditTextFileCmdInput =
jnew JXInputField(window,
JXWidget::kHElastic, JXWidget::kVElastic, 200,40, 230,20);
assert( itsEditTextFileCmdInput != NULL );
itsEditTextFileLineCmdInput =
jnew JXInputField(window,
JXWidget::kHElastic, JXWidget::kVElastic, 200,60, 230,20);
assert( itsEditTextFileLineCmdInput != NULL );
JXTextButton* cancelButton =
jnew JXTextButton(JGetString("cancelButton::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 100,190, 70,20);
assert( cancelButton != NULL );
JXTextButton* okButton =
jnew JXTextButton(JGetString("okButton::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 270,190, 70,20);
assert( okButton != NULL );
okButton->SetShortcuts(JGetString("okButton::CBExtEditorDialog::shortcuts::JXLayout"));
JXStaticText* editTextHint =
jnew JXStaticText(JGetString("editTextHint::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 160,80, 270,20);
assert( editTextHint != NULL );
editTextHint->SetFontSize(JGetDefaultFontSize()-2);
editTextHint->SetToLabel();
JXStaticText* editTextLabel =
jnew JXStaticText(JGetString("editTextLabel::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 30,40, 170,20);
assert( editTextLabel != NULL );
editTextLabel->SetToLabel();
JXStaticText* editLineLabel =
jnew JXStaticText(JGetString("editLineLabel::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 30,60, 170,20);
assert( editLineLabel != NULL );
editLineLabel->SetToLabel();
itsExtTextEditorCB =
jnew JXTextCheckbox(JGetString("itsExtTextEditorCB::CBExtEditorDialog::JXLayout"), window,
JXWidget::kFixedLeft, JXWidget::kFixedTop, 10,20, 160,20);
assert( itsExtTextEditorCB != NULL );
itsEditBinaryFileCmdInput =
jnew JXInputField(window,
JXWidget::kHElastic, JXWidget::kVElastic, 200,130, 230,20);
assert( itsEditBinaryFileCmdInput != NULL );
JXStaticText* editBinaryHint =
jnew JXStaticText(JGetString("editBinaryHint::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 200,150, 230,20);
assert( editBinaryHint != NULL );
editBinaryHint->SetFontSize(JGetDefaultFontSize()-2);
editBinaryHint->SetToLabel();
JXStaticText* editBinaryLabel =
jnew JXStaticText(JGetString("editBinaryLabel::CBExtEditorDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 30,130, 170,20);
assert( editBinaryLabel != NULL );
editBinaryLabel->SetToLabel();
itsExtBinaryEditorCB =
jnew JXTextCheckbox(JGetString("itsExtBinaryEditorCB::CBExtEditorDialog::JXLayout"), window,
JXWidget::kFixedLeft, JXWidget::kFixedTop, 10,110, 180,20);
assert( itsExtBinaryEditorCB != NULL );
// end JXLayout
window->SetTitle("External Editor");
SetButtons(okButton, cancelButton);
itsExtTextEditorCB->SetState(!editTextLocally);
itsEditTextFileCmdInput->SetText(editTextFileCmd);
itsEditTextFileCmdInput->SetCharacterInWordFunction(JXChooseSaveFile::IsCharacterInWord);
itsEditTextFileLineCmdInput->SetText(editTextFileLineCmd);
itsEditTextFileLineCmdInput->SetCharacterInWordFunction(JXChooseSaveFile::IsCharacterInWord);
itsExtBinaryEditorCB->SetState(!editBinaryLocally);
itsEditBinaryFileCmdInput->SetText(editBinaryFileCmd);
itsEditBinaryFileCmdInput->SetCharacterInWordFunction(JXChooseSaveFile::IsCharacterInWord);
// until we have a built-in one
itsExtBinaryEditorCB->SetState(kJTrue);
//.........这里部分代码省略.........
示例2: JXIntegerInput
//.........这里部分代码省略.........
jnew JXTextCheckbox(JGetString("itsPackFnMenuCB::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 20,430, 280,20);
assert( itsPackFnMenuCB != NULL );
itsColorButton[CBPrefsManager::kRightMarginColorIndex-1] =
jnew JXTextButton(JGetString("itsColorButton[CBPrefsManager::kRightMarginColorIndex-1]::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 450,70, 160,20);
assert( itsColorButton[CBPrefsManager::kRightMarginColorIndex-1] != NULL );
itsRightMarginCB =
jnew JXTextCheckbox(JGetString("itsRightMarginCB::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 330,190, 210,20);
assert( itsRightMarginCB != NULL );
itsRightMarginInput =
jnew JXIntegerInput(window,
JXWidget::kHElastic, JXWidget::kVElastic, 540,190, 40,20);
assert( itsRightMarginInput != NULL );
itsSampleText =
jnew CBSampleText(window,
JXWidget::kFixedLeft, JXWidget::kFixedTop, 310,20, 310,25);
assert( itsSampleText != NULL );
itsNSInFnMenuCB =
jnew JXTextCheckbox(JGetString("itsNSInFnMenuCB::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 20,410, 280,20);
assert( itsNSInFnMenuCB != NULL );
JXStaticText* wordWrapHint =
jnew JXStaticText(JGetString("wordWrapHint::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 40,460, 250,20);
assert( wordWrapHint != NULL );
wordWrapHint->SetFontSize(JGetDefaultFontSize()-2);
wordWrapHint->SetToLabel();
itsMiddleButtonPasteCB =
jnew JXTextCheckbox(JGetString("itsMiddleButtonPasteCB::CBEditTextPrefsDialog::JXLayout"), window,
JXWidget::kFixedLeft, JXWidget::kFixedTop, 20,270, 280,20);
assert( itsMiddleButtonPasteCB != NULL );
// end JXLayout
window->SetTitle("Text Editor Preferences");
SetButtons(okButton, cancelButton);
ListenTo(itsHelpButton);
itsEmulatorMenu->SetMenuItems(kEmulatorMenuStr);
itsEmulatorMenu->SetUpdateAction(JXMenu::kDisableNone);
itsEmulatorMenu->SetToPopupChoice(kJTrue, itsEmulatorIndex);
ListenTo(itsEmulatorMenu);
itsCreateBackupCB->SetState(doc->WillMakeBackupFile());
itsOnlyBackupIfNoneCB->SetState(!doc->WillMakeNewBackupEveryOpen());
itsExtraSpaceWindTitleCB->SetState(doc->WillAllocateTitleSpace());
itsOpenComplFileOnTopCB->SetState(doc->WillOpenComplFileOnTop());
CBTextEditor* te = doc->GetTextEditor();
itsAutoIndentCB->SetState(te->WillAutoIndent());
itsUseDNDCB->SetState(te->CBAllowsDragAndDrop());
itsLeftToFrontOfTextCB->SetState(te->WillMoveToFrontOfText());
itsBalanceWhileTypingCB->SetState(te->WillBalanceWhileTyping());
itsScrollToBalanceCB->SetState(te->WillScrollToBalance());