protected override void OnLoad(EventArgs e) { base.OnLoad(e); DisplayHelper.AutoFitSystemCombo(_comboBoxLanguage, _comboBoxLanguage.Width, _groupBoxGeneralOptions.Width - _comboBoxLanguage.Left - 8, false); LayoutHelper.FixupGroupBox(8, _groupBoxGeneralOptions); }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode && !_layedOut) { LayoutHelper.FixupGroupBox(groupBoxEditing); _layedOut = true; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { LayoutHelper.FixupGroupBox(groupBoxOptions); checkBoxAllowAutoUpdate.Height += 1; checkBoxAllowProviderButtons.Height += 1; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode && !_layedOut) { LayoutHelper.FixupGroupBox(this.groupBoxPostWindows); LayoutHelper.FixupGroupBox(this.groupBoxPublishing); LayoutHelper.FixupGroupBox(this.groupBoxGeneral); LayoutHelper.NaturalizeHeightAndDistribute(8, groupBoxPostWindows, groupBoxPublishing, groupBoxGeneral); _layedOut = true; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { LayoutHelper.FixupGroupBox(groupBoxTransportEncoding); LayoutHelper.FixupGroupBox(groupBoxXHTML); LayoutHelper.DistributeVertically((int)DisplayHelper.ScaleY(8), groupBoxTransportEncoding, groupBoxXHTML, groupBoxOptions); int delta = LayoutHelper.AutoFitLabels(lblEmbeds, lblScripts); comboEmbeds.Left += delta; comboEmbeds.Width -= delta; comboScripts.Left += delta; comboScripts.Width -= delta; } }
protected override void OnLoad(EventArgs e) { base.OnLoad(e); if (!DesignMode) { DisplayHelper.AutoFitSystemButton(buttonUpdateStyle); // add some padding to the button, otherwise it looks crowded buttonUpdateStyle.Width += (int)Math.Ceiling(DisplayHelper.ScaleX(14)); comboBoxRTL.Left = buttonUpdateStyle.Left + 1; LayoutHelper.FixupGroupBox(groupBoxWeblogStyle); LayoutHelper.FixupGroupBox(groupBoxRTL); LayoutHelper.DistributeVertically(8, groupBoxWeblogStyle, groupBoxRTL); int maxWidth = groupBoxRTL.Width - comboBoxRTL.Left - 8; DisplayHelper.AutoFitSystemCombo(comboBoxRTL, comboBoxRTL.Width, maxWidth, false); } }
protected override void OnLoad(EventArgs e) { LayoutHelper.FixupGroupBox(groupboxAutoLink); base.OnLoad(e); }