Re: Resizing of Tool Windows
SharpUI for .NET Support
Resizing of Tool Windows
11-23-2007, 7:19 AM
Hello,
I'm sure there is an easy way to do this. I'm trying to clamp the width of a Tool Window to a given value whether the window is pinned or floating. I'm using the following function
"void twSettings_Resize(object sender, DataDynamics.SharpUI.Toolbars.ToolbarManagerEventArgs e)
{
if (!twSettings.Floating)
{
this.twSettings.DockedSize.Width = 250;
}
} "
but keep getting the error that
" Cannot modify the return value of 'DataDynamics.SharpUI.Toolbars.ToolWindow.DockedSize' because it is not a variable "
How can I fix the Tool Windows width whether it is floating or pinned and still allow the Tool Window to be unpinned and pinned?
thanks in advance for your help
Sandyw
Re: Resizing of Tool Windows
11-26-2007, 2:45 PM
Thank you for your question. You can specify the windows DockedSize by setting it to a new size object with the desired parameters.
Ex
this.toolWindow1.DockedSize = new Size(250,250);
Thanks,
Eric