Example #1
0
        void ActivateSettingsMode()
        {
            if (!SettingsModeActivated)
            {
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                NativeMethodsGWL.CatchClicks(this.Handle);

                this.Opacity = 1;

                moveresize_MouseUp(null, null); // disable all dragging

                this.bn_close.Visible            = true;
                this.bn_resize.Visible           = true;
                this.bn_settings.Visible         = true;
                this.panel_textposhelper.Visible = true;
                BringSettingsControlsToFront();

                foreach (TweenLabel T in tweenLabels)
                {
                    T.Visible = false;
                }

                SettingsModeActivated = true;
            }
        }
Example #2
0
        void SetFormStyles()
        {
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Opacity         = s.CursorIndicatorOpacity;
            NativeMethodsGWL.ClickThrough(this.Handle);
            NativeMethodsGWL.HideFromAltTab(this.Handle);

            UpdateSize();
            UpdatePosition();
        }
Example #3
0
        void ActivateDisplayOnlyMode(bool force)
        {
            if (SettingsModeActivated || force)
            {
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
                this.Opacity         = settings.Opacity;

                NativeMethodsGWL.ClickThrough(this.Handle);
                NativeMethodsGWL.HideFromAltTab(this.Handle);

                moveresize_MouseUp(null, null); // disable all dragging

                this.bn_close.Visible            = false;
                this.bn_resize.Visible           = false;
                this.bn_settings.Visible         = false;
                this.panel_textposhelper.Visible = false;

                SettingsModeActivated = false;

                settings.SaveAll();
            }
        }