void TBEditField::SetMultiline(bool multiline) { if (multiline == GetMultiline()) return; UpdateScrollbarVisibility(multiline); m_style_edit.SetMultiline(multiline); SetWrapping(multiline); InvalidateSkinStates(); TBWidget::Invalidate(); }
OpGoToIntranetBar::OpGoToIntranetBar() : m_label(NULL) , m_show_time(0) , m_hide_when_url_change(FALSE) , m_save_typed_history(TRUE) { SetListener(this); SetWrapping(OpBar::WRAPPING_OFF); SetShrinkToFit(TRUE); }
OpExtensionsDevToolsToolbar::OpExtensionsDevToolsToolbar() { SetListener(this); SetWrapping(OpBar::WRAPPING_OFF); SetShrinkToFit(TRUE); //SetFixedHeight(FIXED_HEIGHT_BUTTON_AND_EDIT); SetStandardToolbar(FALSE); SetButtonType(OpButton::TYPE_TOOLBAR); SetName("Extensions Developer Tools Toolbar"); GetBorderSkin()->SetImage("Viewbar skin"); }
OpPersonalbar::OpPersonalbar(PrefsCollectionUI::integerpref prefs_setting) : OpToolbar(prefs_setting), m_is_inline(FALSE), m_listeners_set(FALSE), m_disable_indicator(FALSE) { SetListener(this); SetWrapping(OpBar::WRAPPING_OFF); SetShrinkToFit(TRUE); // Not use FIXED_HEIGHT_BUTTON_AND_EDIT since edit it too high SetFixedHeight(FIXED_HEIGHT_BUTTON); SetButtonType(OpButton::TYPE_LINK); SetStandardToolbar(FALSE); SetTabStop(TRUE); }