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); }
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); }
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); }