示例#1
0
文件: SugzForm.cs 项目: Sugz/CSharp
 /// <summary>
 /// Removes a CUI Frame around the MAXForm. The form styles will be restored and it will be parented to the 3ds Max main
 ///             window, regardless of what it was parented to before.
 /// 
 /// </summary>
 public void RemoveFrame()
 {
     if (this.Frame == null)
         return;
     this.Frame.RemoveFrame();
     this.Frame = (WinFormsCUIFrame)null;
 }
示例#2
0
文件: SugzForm.cs 项目: Sugz/CSharp
 /// <summary>
 /// Adds a CUI frame to the MAXForm that allows it to be docked to the left or to the right.
 ///             This changes a lot of the standard behavior of Windows forms so use with caution.
 ///             For example activate events are no longer triggered which in turn means that accelerators are no longer
 ///             disabled when the form is activated.
 /// 
 /// </summary>
 public void ShowInFrame()
 {
     if (this.Frame != null || !SystemInformation.UserInteractive)
         return;
     this.Frame = new WinFormsCUIFrame((Form)this);
 }