当前位置: 首页>>代码示例>>C++>>正文


C++ TextEditor::setBounds方法代码示例

本文整理汇总了C++中TextEditor::setBounds方法的典型用法代码示例。如果您正苦于以下问题:C++ TextEditor::setBounds方法的具体用法?C++ TextEditor::setBounds怎么用?C++ TextEditor::setBounds使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TextEditor的用法示例。


在下文中一共展示了TextEditor::setBounds方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: resized

void FindAndReplaceDialog::resized()
{
  label1->setBounds (8, 8, 56, 24);
  textEditor1->setBounds (72, 8, 336, 24);
  label2->setBounds (8, 40, 56, 24);
  textEditor2->setBounds (72, 40, 336, 24);
  textButton1->setBounds (8, 72, 80, 24);
  textButton2->setBounds (88, 72, 80, 24);
  textButton3->setBounds (168, 72, 96, 24);
  textButton4->setBounds (264, 72, 64, 24);
  textButton5->setBounds (328, 72, 80, 24);
}
开发者ID:josephzizys,项目名称:CM,代码行数:12,代码来源:TextEditor.cpp

示例2: resized

    void resized()
    {
        // lay out the list box and vertical divider..
        Component* vcomps[] = { listBox, verticalDividerBar, 0 };

        verticalLayout.layOutComponents (vcomps, 3,
                                         4, 4, getWidth() - 8, getHeight() - 8,
                                         false,     // lay out side-by-side
                                         true);     // resize the components' heights as well as widths

        // now lay out the text box and the controls below it..
        int x = verticalLayout.getItemCurrentPosition (2) + 4;
        textBox->setBounds (x, 0, getWidth() - x, getHeight() - 110);
        x += 70;
        sizeSlider->setBounds (x, getHeight() - 106, getWidth() - x, 22);
        kerningSlider->setBounds (x, getHeight() - 82, getWidth() - x, 22);
        horizontalScaleSlider->setBounds (x, getHeight() - 58, getWidth() - x, 22);
        boldButton->setBounds (x, getHeight() - 34, (getWidth() - x) / 2, 22);
        italicButton->setBounds (x + (getWidth() - x) / 2, getHeight() - 34, (getWidth() - x) / 2, 22);
    }
开发者ID:harry-g,项目名称:juced,代码行数:20,代码来源:FontsAndTextDemo.cpp

示例3: CContourCurveEditor

  CContourCurveEditor ()
  {
    m_presetCombo = new ComboBox;
    m_presetCombo->setBounds (73, 10, 217, 22);
    addAndMakeVisible (m_presetCombo);

    m_curveEditor = new CContourEditor;
    m_curveEditor->setBounds (20, 62, 260, 260);
    addAndMakeVisible (m_curveEditor);

    {
      Label* c = new Label (String::empty, "In:");
      c->setBounds (20, 332, 48, 20);
      c->setJustificationType (Justification::right);
      addAndMakeVisible (c);
    }

    m_inEdit = new TextEditor;
    m_inEdit->setBounds (73, 332, 67, 20);
    addAndMakeVisible (m_inEdit);

    {
      Label* c = new Label (String::empty, "Out:");
      c->setBounds (20, 364, 48, 20);
      c->setJustificationType (Justification::right);
      addAndMakeVisible (c);
    }

    m_outEdit = new TextEditor;
    m_outEdit->setBounds (73, 364, 67, 20);
    addAndMakeVisible (m_outEdit);

    m_cornerCheck = new ToggleButton ("Corner");
    m_cornerCheck->setBounds (166, 347, 120, 24);
    addAndMakeVisible (m_cornerCheck);

    m_btnOK = new TextButton ("OK");
    m_btnOK->setBounds (306, 11, 76, 18);
    m_btnOK->addListener (this);
    addAndMakeVisible (m_btnOK);

    m_btnReset = new TextButton ("Reset");
    m_btnReset->setBounds (306, 39, 76, 18);
    m_btnReset->addListener (this);
    addAndMakeVisible (m_btnReset);

    m_btnLoad = new TextButton ("Load...");
    m_btnLoad->setBounds (306, 67, 76, 18);
    m_btnLoad->addListener (this);
    addAndMakeVisible (m_btnLoad);

    m_btnSave = new TextButton ("Save...");
    m_btnSave->setBounds (306, 105, 76, 18);
    m_btnSave->addListener (this);
    addAndMakeVisible (m_btnSave);

    m_btnNew = new TextButton ("New...");
    m_btnNew->setBounds (306, 133, 76, 18);
    m_btnNew->addListener (this);
    addAndMakeVisible (m_btnNew);

    setSize (393, 406);
  }
开发者ID:EQ4,项目名称:LayerEffects,代码行数:63,代码来源:CContourPicker.cpp


注:本文中的TextEditor::setBounds方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。