コード例 #1
0
        private void SetFromFileActive()
        {
            //clear out all web image tab info
            _panelImage.Visible = false;
            activeImageSource   = null;

            //show file image info
            foreach (IntPtr thing in controlsToShowHideOnTabSwitch)
            {
                User32.ShowWindow(thing, SW.SHOW);
            }
            ForceLargeThumbnail(_hWndContent);
            User32.SendMessage(_hWndFileName, WM.SETFOCUS, new UIntPtr(1), IntPtr.Zero);
            state = STATE.FILE;
            GC.KeepAlive(this);
        }
コード例 #2
0
        public void SetActiveControl(InsertImageSource source)
        {
            //if coming from file tab, hide all that stuff
            if (state != STATE.WEB)
            {
                foreach (IntPtr thing in controlsToShowHideOnTabSwitch)
                {
                    User32.ShowWindow(thing, SW.HIDE);
                }
            }

            //set the new source info
            activeImageSource = source;
            _panelImage.Controls.Clear();
            _panelImage.Controls.Add(activeImageSource.ImageSelectionControls);
            ManipulatePanels();
            _panelImage.Visible = true;
            activeImageSource.TabSelected();

            state = STATE.WEB;
        }
コード例 #3
0
        private void SetFromFileActive()
        {
            //clear out all web image tab info
            _panelImage.Visible = false;
            activeImageSource = null;

            //show file image info
            foreach (IntPtr thing in controlsToShowHideOnTabSwitch)
            {
                User32.ShowWindow(thing, SW.SHOW);
            }
            ForceLargeThumbnail(_hWndContent);
            User32.SendMessage(_hWndFileName, WM.SETFOCUS, new UIntPtr(1), IntPtr.Zero);
            state = STATE.FILE;
            GC.KeepAlive(this);
        }
コード例 #4
0
        public void SetActiveControl(InsertImageSource source)
        {
            //if coming from file tab, hide all that stuff
            if (state != STATE.WEB)
            {
                foreach (IntPtr thing in controlsToShowHideOnTabSwitch)
                {
                    User32.ShowWindow(thing, SW.HIDE);
                }
            }

            //set the new source info
            activeImageSource = source;
            _panelImage.Controls.Clear();
            _panelImage.Controls.Add(activeImageSource.ImageSelectionControls);
            ManipulatePanels();
            _panelImage.Visible = true;
            activeImageSource.TabSelected();

            state = STATE.WEB;
        }