/[RomCheater]/trunk/RomCheater.RVAScratchPad/Form1.cs
ViewVC logotype

Diff of /trunk/RomCheater.RVAScratchPad/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/18 20:37:57	726
+++ trunk/RomCheater.RVAScratchPad/Form1.cs	2013/06/19 01:37:36	727
@@ -111,12 +111,12 @@
         public void SetupDocks()
         {
             m_LogWindow = new FloatingLogWindow();
-            m_LogWindow.CloseButton = false;
-            m_LogWindow.CloseButtonVisible = false;
+            //m_LogWindow.CloseButton = false;
+            //m_LogWindow.CloseButtonVisible = false;
 
             m_wb = new FloatingWebBrowser();
-            m_wb.CloseButton = false;
-            m_wb.CloseButtonVisible = false;
+            //m_wb.CloseButton = false;
+            //m_wb.CloseButtonVisible = false;
 
             m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);
         }
@@ -168,10 +168,14 @@
         public void ShowLogWindow()
         {
             if (m_LogWindow == null || m_LogWindow.IsDisposed) { m_LogWindow = new FloatingLogWindow(); }
-            LoggerInstance = m_LogWindow.Logwriter;
-            LoggerInstance.CreateNewLog(false);
-            m_LogWindow.CloseButton = false;
-            m_LogWindow.CloseButtonVisible = false;
+            if (LoggerInstance == null)
+            {
+                LoggerInstance = m_LogWindow.Logwriter;
+                LoggerInstance.CreateNewLog(false);
+            }
+            //m_LogWindow.AllowEndUserDocking = true;
+            //m_LogWindow.CloseButton = false;
+            //m_LogWindow.CloseButtonVisible = false;
             m_LogWindow.Show(dockPanel, DockState.DockBottom);
         }
 
@@ -180,16 +184,29 @@
         {
             //load_plugins_silent();
             m_wb = new FloatingWebBrowser();
-            m_wb.CloseButton = false;
-            m_wb.CloseButtonVisible = false;
-            m_wb.Show(dockPanel);
+            //m_wb.AllowEndUserDocking = true;
+            //m_wb.CloseButton = false;
+            //m_wb.CloseButtonVisible = false;
+            m_wb.Show(dockPanel, DockState.Document);
         }
         public void ShowPluginWindows()
         {
-            // RVA Calc
-            RVACalcPlugin.Show(dockPanel);
-            // ScratchPad
-            ScratchPadPlugin.Show(dockPanel);     
+            if (RVACalcPlugin != null)
+            {
+                // RVA Calc                
+                //RVACalcPlugin.DockHandler.CloseButton = false;                
+                //RVACalcPlugin.DockHandler.CloseButtonVisible = false;
+                //RVACalcPlugin.DockHandler.AllowEndUserDocking = true;
+                RVACalcPlugin.Show(dockPanel);
+            }
+            if (ScratchPadPlugin != null)
+            {
+                // ScratchPad                
+                //ScratchPadPlugin.DockHandler.CloseButton = false;
+                //ScratchPadPlugin.DockHandler.CloseButtonVisible = false;
+                //ScratchPadPlugin.DockHandler.AllowEndUserDocking = true;
+                ScratchPadPlugin.Show(dockPanel, DockState.Document);
+            }
         }
         #endregion
 

 

  ViewVC Help
Powered by ViewVC 1.1.22