Beispiel #1
0
 public SideTabContent(SideBar nSideBar)
 {
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.CacheText, true);
     ResizeRedraw = true;
     AllowDrop = true;
     mSideBar = nSideBar;
 }
Beispiel #2
0
        public SideBarControl(SideBar nSideBar)
        {
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            SetStyle(ControlStyles.CacheText, true);
            AllowDrop = true;

            mMouseWheelHandler = new MouseWheelHandler();
            mSideTabContent = new SideTabContent(nSideBar);
            mScrollBar = new VScrollBar();
            mScrollBar.Scroll += new ScrollEventHandler(_scrollBarScrolled);
            mSideBar = nSideBar;
            mMouseDownTab = null;
            Controls.Add(mScrollBar);
            Controls.Add(mSideTabContent);
        }
Beispiel #3
0
        public void _runInit()
        {
            if (true == mInited)
            {
                return;
            }

            Button button_ = new Button();
            this._regControl(button_);
            MenuStrip menuStrip_ = new MenuStrip();
            this._regControl(menuStrip_);
            ToolPanel toolPanel_ = new ToolPanel();
            this._regControl(toolPanel_);
            SideBar sideBar_ = new SideBar();
            this._regControl(sideBar_);
            DockPanel dockPanel_ = new DockPanel();
            this._regControl(dockPanel_);
            StatusBar statusBar_ = new StatusBar();
            this._regControl(statusBar_);
            Panel panel_ = new Panel();
            this._regControl(panel_);
            TextLabel textLabel_ = new TextLabel();
            this._regControl(textLabel_);
            TextBox textBox_ = new TextBox();
            this._regControl(textBox_);
            ListView listView_ = new ListView();
            this._regControl(listView_);
            TreeView treeView_ = new TreeView();
            this._regControl(treeView_);
            TextEdit textEdit_ = new TextEdit();
            this._regControl(textEdit_);
            ComboBox combox_ = new ComboBox();
            this._regControl(combox_);
            RadioButtonEx radioButtonEx_ = new RadioButtonEx();
            this._regControl(radioButtonEx_);
            RadioButton radioButton_ = new RadioButton();
            this._regControl(radioButton_);
            GroupBox groupBox_ = new GroupBox();
            this._regControl(groupBox_);
            mInited = true;
        }
Beispiel #4
0
        public SideTab()
        {
            mMemberStreams = new List<MemberStream>();
            mSideTabItems = new List<SideTabItem>();

            mPointItem = new SideTabItem();
            mPointItem._setName(@"选择");
            mPointItem._setId(@"selectPointor");
            mPointItem._setMail("*****@*****.**");
            mPointItem._setSideTabItemStatus(SideTabItemStatus_.mChoosed_);
            string imageUrl_ = @"rid://window.optimal.selectImageUrl";
            mPointItem._setImageUrl(imageUrl_);
            mSideTabItems.Add(mPointItem);

            mSideTabStatus = SideTabStatus_.mNormal_;
            mSideTabImageUrl = null;
            mSideTabImage = null;
            mSelectedItem = null;
            mChoosedItem = mPointItem;
            mSideTabName = null;
            mScrollIndex = 0;
            mVisible = true;
            mSideBar = null;
        }
Beispiel #5
0
 public void _setSideBar(SideBar nSideBar)
 {
     mSideBar = nSideBar;
 }