Changeset 42

Show
Ignore:
Timestamp:
02/26/05 04:43:55 (4 years ago)
Author:
altba\rryu
Message:

パターンの大きさに合わせてパターンウインドウの大きさも変えるようにした。

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/MacFaceFloat/PatternWindow.cs

    r41 r42  
    3636                void InitializeComponent() 
    3737                { 
    38                         this.AutoScaleBaseSize = new System.Drawing.Size(5, 12)
    39                         this.ClientSize = new System.Drawing.Size(120, 101); 
     38                        this.AutoScale = false
     39                        this.ClientSize = new System.Drawing.Size(128, 128); 
    4040                        this.ControlBox = false; 
     41                        this.FormBorderStyle = FormBorderStyle.None; 
    4142                        this.MaximizeBox = false; 
    4243                        this.MinimizeBox = false; 
     
    5152                { 
    5253                        get { return patternSize; } 
    53                         set { patternSize = value; } 
     54                        set { 
     55                                patternSize = value; 
     56                                Width = (int)Math.Ceiling(FaceDef.ImageWidth * patternSize); 
     57                                Height = (int)Math.Ceiling(FaceDef.ImageHeight * patternSize); 
     58                        } 
    5459                } 
    5560