Results 1 to 2 of 2

Thread: Delphi, Add Minimize to System Tray?!

  1. #1
    Join Date
    Jul 2010
    Posts
    37

    Delphi, Add Minimize to System Tray?!

    How can I add the function - "Minimize To System Tray" for my recently developed form???

  2. #2
    Join Date
    May 2009
    Posts
    527

    Re: Delphi, Add Minimize to System Tray?!

    The simplest and intercept the mesage and the discount redirected to the main window.
    Code:
    PostMessage (h, WM_SYSCOMMAND, SC_MINIMIZE, 0);
    or

    Code:
      Application. Minimize
    implement in a complete sample your child window

    HTML Code:
     Maform = class (TForm)
     ...
     WMSYSCOMMAND procedure (var msg: TWMSysCommand); WM_SYSCOMMAND message; 
      ...
     end;
     ... 
     MaForm proceedings. WMSYSCOMMAND (var msg: TWMSysCommand); 
     begin 
       if msg. CmdType = SC_MINIMIZE Then 
           Application. Minimize 
        else 
          inherited; 
     end;

Similar Threads

  1. Minimize Outlook Express to System Tray
    By Jacob in forum Windows Software
    Replies: 4
    Last Post: 17-03-2012, 10:15 AM
  2. How to disable minimize utorrent to system tray in window 7?
    By Bangari in forum Technology & Internet
    Replies: 4
    Last Post: 18-06-2010, 10:27 PM
  3. How to minimize Firefox to the System Tray?
    By Dolsy_bendal in forum Technology & Internet
    Replies: 5
    Last Post: 10-02-2010, 11:04 AM
  4. Replies: 3
    Last Post: 01-07-2009, 11:14 PM
  5. Minimize Windows Mail to system tray
    By Nevermind in forum Customize Desktop
    Replies: 4
    Last Post: 26-02-2009, 10:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,891,760.55073 seconds with 17 queries