コード例 #1
0
        public MozItem()
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();

            SetStyle(ControlStyles.DoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.ResizeRedraw, true);
            SetStyle(ControlStyles.SupportsTransparentBackColor, true);

            // TODO: Add any initialization after the InitializeComponent call

            m_imageCollection = new ImageCollection(this);

            image = null;

            m_state = MozItemState.Normal;

            m_itemStyle = MozItemStyle.TextAndPicture;
            m_textAlign = MozTextAlign.Bottom;
            DoLayout();
        }
コード例 #2
0
ファイル: MozItem.cs プロジェクト: HydAu/PowershellUISamples
		public MozItem()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			this.SetStyle(ControlStyles.DoubleBuffer, true);
			this.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			this.SetStyle(ControlStyles.UserPaint, true);
			this.SetStyle(ControlStyles.ResizeRedraw, true);
			this.SetStyle(ControlStyles.SupportsTransparentBackColor, true);

			// TODO: Add any initialization after the InitializeComponent call
			
			m_imageCollection = new ImageCollection(this); 
									
			image = null;
								
			m_state = MozItemState.Normal;
 			
			m_itemStyle = MozItemStyle.TextAndPicture;
			m_textAlign = MozTextAlign.Bottom; 
			DoLayout();
            			
		}