Ignore:
Timestamp:
Nov 19, 2004, 3:08:37 AM (19 years ago)
Author:
altba\tomoyo
Message:

通知領域に表示するようにした(アイコンはまだ無い)。
設定フォームのプレビューが汚くならないようにした。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MacFaceFloat/MainForm.cs

    r21 r22  
    2121        public class MainForm : Misuzilla.Windows.Forms.AlphaForm
    2222        {
     23                private System.Windows.Forms.NotifyIcon notifyIcon;
    2324                private System.Windows.Forms.ContextMenu contextMenu;
    2425                private System.Windows.Forms.MenuItem menuItemPatternSelect;
     
    6768
    6869                void InitializeComponent() {
     70                        this.notifyIcon = new System.Windows.Forms.NotifyIcon();
    6971                        this.menuItemPatternSelect = new System.Windows.Forms.MenuItem();
    7072                        this.menuItemConfigure = new System.Windows.Forms.MenuItem();
    7173                        this.menuItemExit = new System.Windows.Forms.MenuItem();
    7274                        this.contextMenu = new System.Windows.Forms.ContextMenu();
     75
     76                        //
     77                        // notifyIcon
     78                        //
     79                        this.notifyIcon.Text = "MacFace";
     80                        this.notifyIcon.Icon = this.Icon;
     81                        this.notifyIcon.Visible = true;
     82                        this.notifyIcon.ContextMenu = this.contextMenu;
     83
    7384                        //
    7485                        // menuItemPatternSelect
     
    191202                        _currentFaceDef = newFaceDef;
    192203                        _facePath = _currentFaceDef.Path;
     204                        notifyIcon.Text = "MacFace - " + _currentFaceDef.Title;
    193205                        prevUsage = -1;
    194206                        prevMarkers = -1;
     
    264276                private void MainForm_Closing(object sender, CancelEventArgs e)
    265277                {
     278                        notifyIcon.Visible = false;
     279
    266280                        // •Û‘¶
    267281                        _config.Opacity = (int) (this.Opacity * 100);
Note: See TracChangeset for help on using the changeset viewer.