SharpUI for .NET Support

Started by sandyw at 11-23-2007 7:19 AM. Topic has 1 replies.

Print Search Rate
Sort Posts:    
   11-23-2007, 7:19 AM
sandyw is not online. Last active: 1/20/2010 12:12:22 PM sandyw

Not Ranked
Joined on 08-28-2004
Posts 8
Resizing of Tool Windows
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
   Report 
   11-26-2007, 2:45 PM
ericc is not online. Last active: 4/4/2009 4:32:14 PM ericc

Top 10 Posts
Joined on 03-01-2005
Posts 1,857

DDStaff
Re: Resizing of Tool Windows
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


   Report 
GrapeCity » Product Support » SharpUI for .NE... » Re: Resizing of Tool Windows

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.