Close to Tray Feature Request

Support and feedback for UniUploader
UniUploader requires microsoft .net runtimes!

Close to Tray Feature Request

Postby guido666 » Wed Sep 03, 2008 10:40 pm

UniUploader already minimizes to the system tray. Would it be possible to add a configuration option to also Close to Tray? So many of my guildies naively close the program, then don't get the plugin updates before raid day.

This would help ensure that it is always running.
guido666
WR.net Apprentice
WR.net Apprentice
 
Posts: 9
Joined: Tue Aug 26, 2008 10:32 pm

Re: Close to Tray Feature Request

Postby Calystos » Wed Sep 03, 2008 11:56 pm

Its not much but go to about line 28, the part that reads:

Code: Select all
    public class Form1 : System.Windows.Forms.Form
    {
        private System.Windows.Forms.TextBox URL;


And change it so it reads
Code: Select all
    public class Form1 : System.Windows.Forms.Form
    {
      private const int CP_NOCLOSE_BUTTON = 0x200;
      protected override CreateParams CreateParams
      {
         get
         {
            CreateParams myCp = base.CreateParams;
            myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
            return myCp;
         }
      }
        private System.Windows.Forms.TextBox URL;


This totally disables the X close button. Not quite a minimize to tray option but the minimize button still works next to it. But at least this means the only way to close it is to right-click on the systray icon and select the Exit option.

Quick an dirty hack, but least its a start, :-)

Will look into this further and more properly when I get more time.
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Close to Tray Feature Request

Postby MattM » Thu Sep 18, 2008 1:18 am

ahh crap I just finished releasing 2.6.8, this is for next version!
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Re: Close to Tray Feature Request

Postby Calystos » Thu Sep 18, 2008 2:02 am

MattM wrote:ahh crap I just finished releasing 2.6.8, this is for next version!

LOL, no probs, this is something I can work on for a later date. Adding options maybe to choose whether or not its disabled, etc. :-)
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth


Return to UniUploader

Who is online

Users browsing this forum: No registered users and 1 guest

cron