Coder Social home page Coder Social logo

Minimize to Taskbar? about superputty HOT 4 CLOSED

azaret avatar azaret commented on September 26, 2024
Minimize to Taskbar?

from superputty.

Comments (4)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
I presume Sergey isn't talking about a bug in the odinary minimize to the 
taskbar, but a request to have SuperPutty minimze to the system tray / 
notification area.

It's simple to implement if there is just one instance of SuperPutty running, 
but what it there are are more? If there are multiple instances should they 
minimize to multiple icons in the system tray, that would be messy.

Perhaps minimizing to the system tray should only be allowed in the 'Only allow 
single instance' flag is set.

Rob


Original comment by [email protected] on 7 May 2012 at 8:24

  • Added labels: ****
  • Removed labels: ****

from superputty.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
For myself I have implemented mimimze to tray and have created a patch for 
frmSuperPutty.cs which I will upload. Of course there should be an option 
whether it should mimimize to tray or to task bar which I have not implemented. 
I will not upload a patch for frmSuperPutty.Designer.cs because Visual C# 
always re-arranges everything when I edit a form in the Designer. 

I used a NotifyIcon called mynotifyicon and a ContextMenuStrip called 
mynotifyicon_contextMenuStrip1. mynotifyicon_contextMenuStrip1 only has a 
single ToolStripMenuItem called mynotifyicon_toolStripExit for exiting 
SuperPutty w/o confirmation. The properties of the objects are as follows:

            // mynotifyicon
            // 
            this.mynotifyicon.ContextMenuStrip = this.mynotifyicon_contextMenuStrip1;
            this.mynotifyicon.Icon = ((System.Drawing.Icon)(resources.GetObject("mynotifyicon.Icon")));
            this.mynotifyicon.Text = "SuperPutty";

            // I used single click for restoring the window
            this.mynotifyicon.MouseClick += new System.Windows.Forms.MouseEventHandler(this.mynotifyicon_MouseClick);
            // 
            // mynotifyicon_contextMenuStrip1
            // 
            this.mynotifyicon_contextMenuStrip1.AutoSize = false;
            this.mynotifyicon_contextMenuStrip1.ImageScalingSize = new System.Drawing.Size(0, 0);
            this.mynotifyicon_contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.mynotifyicon_toolStripExit});
            this.mynotifyicon_contextMenuStrip1.Name = "mynotifyicon_contextMenuStrip1";
            this.mynotifyicon_contextMenuStrip1.ShowImageMargin = false;
            this.mynotifyicon_contextMenuStrip1.ShowItemToolTips = false;
            this.mynotifyicon_contextMenuStrip1.Size = new System.Drawing.Size(100, 26);
            // 
            // mynotifyicon_toolStripExit
            // 
            this.mynotifyicon_toolStripExit.AutoSize = false;
            this.mynotifyicon_toolStripExit.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text;
            this.mynotifyicon_toolStripExit.Name = "mynotifyicon_toolStripExit";
            this.mynotifyicon_toolStripExit.Size = new System.Drawing.Size(100, 22);
            this.mynotifyicon_toolStripExit.Text = "Exit SuperPutty";
            this.mynotifyicon_toolStripExit.Click += new System.EventHandler(this.mynotifyicon_toolStripExit_Click);

frmSuperPutty.Designer.cs also needs:
            this.Resize += new System.EventHandler(this.frmSuperPutty_Resize);

Perhaps this could be integrated in some future release.

Original comment by [email protected] on 11 May 2012 at 11:29

  • Added labels: ****
  • Removed labels: ****

from superputty.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Patch file

Original comment by [email protected] on 11 May 2012 at 11:31

  • Added labels: ****
  • Removed labels: ****

Attachments:

from superputty.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 26, 2024
Thanks for the patch.  

added in along with a user pref (default off)

Original comment by [email protected] on 3 Jun 2012 at 1:28

  • Changed state: Fixed
  • Added labels: ****
  • Removed labels: ****

from superputty.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.