private void InitStylePickerControl() { // Style Picker Control m_StlPicker = new StaticStylePicker(); m_StlPicker.ToolType = DrawingToolType.Cross2D; // This actually means Track for the style picker. m_StlPicker.MouseLeft += new StaticStylePicker.DelegateMouseLeft(StylePicker_MouseLeft); m_StlPicker.StylePicked += new StaticStylePicker.DelegateStylePicked(StylePicker_StylePicked); m_StlPicker.Visible = false; this.Controls.Add(m_StlPicker); m_StlPicker.BringToFront(); }
private void SetupForm() { // Initialize font size combo. cmbTextSize.Items.Clear(); cmbChronoSize.Items.Clear(); foreach (int size in InfosTextDecoration.AllowedFontSizes) { cmbTextSize.Items.Add(size.ToString()); cmbChronoSize.Items.Add(size.ToString()); } UpdateColorsAndStyles(); // Size Picker Control m_StylePicker = new StaticStylePicker(DrawingToolType.Line2D); m_StylePicker.MouseLeft += new StaticStylePicker.DelegateMouseLeft(StylePicker_MouseLeft); m_StylePicker.StylePicked += new StaticStylePicker.DelegateStylePicked(StylePicker_StylePicked); m_StylePicker.Visible = false; this.Controls.Add(m_StylePicker); m_StylePicker.BringToFront(); m_DrawingToolPick = DrawingToolType.Pointer; }