Dear all,
in previous versions I routinely set the background of plots to transparent. If such a plot-object is re-executed (or even the object is just clicked on) in PHX 64 (7.0.0.2535) on Win7 Pro I got an error:
Message:
Phoenix has encountered an unexpected error.
You can continue but it is suggested that you do not save over your originally loaded projects to prevent data loss.
Details:
The control element does not support transparent background colors.
Stack Trace:
at System.Windows.Forms.Control.set_BackColor(Color value)
at System.Windows.Forms.TextBoxBase.set_BackColor(Color value)
at Pharsight.WinNonlin.Plugins.Plotting.UI.Settings.TitleSettingsPanel.SetupFormForObject(Object obj) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\Settings\TitleSettingsPanel.cs:line 65.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PanelBase.set_DisplayObject(Object value) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PanelBase.cs:line 69.
at Pharsight.WinNonlin.Plugins.Plotting.UI.OptionsPanelBase.set_DisplayObject(Object value) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\OptionsPanelBase.cs:line74.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PlotOptionsControl.setOptionsControl(Object obj, PanelBase displayControl) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PlotOptionsControl.cs:line 228.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PlotOptionsControl.setOptionsControl(Object obj, Type type) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PlotOptionsControl.cs:line 207.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PlotOptionsControl.SetupFormForObject(Object obj) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PlotOptionsControl.cs:line 126.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PanelBase.set_DisplayObject(Object value) in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PanelBase.cs:line 69.
at Pharsight.WinNonlin.Plugins.Plotting.UI.PlotObjectOptionsPanel.SetupFormForExecutable() in c:\jenkins\workspace\PhoenixCompile\PHX\MAIN\Phoenix\App\Plugins.Plotting\UI\PlotObjectOptionsPanel.cs:line 60.
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutablePropertyPanelBase.doSetDisplayObject(IObject value)
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutablePropertyPanelBase.setDisplayObject(IObject value)
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutableTabPropertyPanelBase.SetupFormForExecutable()
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutablePropertyPanelBase.doSetDisplayObject(IObject value)
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutablePropertyPanelBase.setDisplayObject(IObject value)
at Pharsight.Phoenix.Forms.PropertyPanels.ExecutablePropertyPanelBase.doDelaySetDisplayObject(Control control)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
That’s nasty.
Workaround: Change “Transparent” to “None”. Note that even after re-execution you cannot change any other of the seetings of the plot object (e.g., axes, lines, markes, etc.). You have to navigate to another object and then return to the plot…
IMHO, this calls for a quick fix!
BTW, in the named colors “Transparent” is still available as an option. Do not use it!
In one of my validation projects I had to modify 40 plots…