本文整理汇总了C++中JXScrollbarSet::SetSizing方法的典型用法代码示例。如果您正苦于以下问题:C++ JXScrollbarSet::SetSizing方法的具体用法?C++ JXScrollbarSet::SetSizing怎么用?C++ JXScrollbarSet::SetSizing使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JXScrollbarSet
的用法示例。
在下文中一共展示了JXScrollbarSet::SetSizing方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: JXScrollbarSet
void
CBEditSearchPathsDialog::BuildWindow
(
const CBDirList& dirList,
CBRelPathCSF* csf
)
{
// begin JXLayout
JXWindow* window = jnew JXWindow(this, 370,370, "");
assert( window != NULL );
JXScrollbarSet* scrollbarSet =
jnew JXScrollbarSet(window,
JXWidget::kHElastic, JXWidget::kFixedBottom, 20,100, 240,220);
assert( scrollbarSet != NULL );
JXTextButton* cancelButton =
jnew JXTextButton(JGetString("cancelButton::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kFixedLeft, JXWidget::kFixedBottom, 70,340, 70,20);
assert( cancelButton != NULL );
JXTextButton* okButton =
jnew JXTextButton(JGetString("okButton::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 230,340, 70,20);
assert( okButton != NULL );
JXStaticText* instrText =
jnew JXStaticText(JGetString("instrText::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kHElastic, JXWidget::kVElastic, 20,20, 330,70);
assert( instrText != NULL );
JXTextButton* addPathButton =
jnew JXTextButton(JGetString("addPathButton::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 280,110, 70,20);
assert( addPathButton != NULL );
addPathButton->SetShortcuts(JGetString("addPathButton::CBEditSearchPathsDialog::shortcuts::JXLayout"));
JXTextButton* removePathButton =
jnew JXTextButton(JGetString("removePathButton::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 280,140, 70,20);
assert( removePathButton != NULL );
removePathButton->SetShortcuts(JGetString("removePathButton::CBEditSearchPathsDialog::shortcuts::JXLayout"));
JXTextButton* choosePathButton =
jnew JXTextButton(JGetString("choosePathButton::CBEditSearchPathsDialog::JXLayout"), window,
JXWidget::kFixedRight, JXWidget::kFixedBottom, 280,190, 70,20);
assert( choosePathButton != NULL );
choosePathButton->SetShortcuts(JGetString("choosePathButton::CBEditSearchPathsDialog::shortcuts::JXLayout"));
// end JXLayout
instrText->SetText(JGetString(kInstructionsID));
window->AdjustSize(0, instrText->GetBoundsHeight() - instrText->GetFrameHeight());
instrText->SetSizing(JXWidget::kHElastic, JXWidget::kFixedTop);
scrollbarSet->SetSizing(JXWidget::kHElastic, JXWidget::kVElastic);
addPathButton->SetSizing(JXWidget::kFixedRight, JXWidget::kFixedTop);
removePathButton->SetSizing(JXWidget::kFixedRight, JXWidget::kFixedTop);
choosePathButton->SetSizing(JXWidget::kFixedRight, JXWidget::kFixedTop);
window->SetTitle("Search Paths for Symbol Database");
window->PlaceAsDialogWindow();
window->LockCurrentMinSize();
UseModalPlacement(kJFalse);
SetButtons(okButton, cancelButton);
itsTable =
jnew CBPathTable(dirList, addPathButton, removePathButton,
choosePathButton, csf,
scrollbarSet, scrollbarSet->GetScrollEnclosure(),
JXWidget::kHElastic, JXWidget::kVElastic, 0,0, 10,10);
assert( itsTable != NULL );
}