We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Sizing of Diagram Editor Window

Thread ID:

Created:

Updated:

Platform:

Replies:

65174 Jul 25,2007 07:05 AM Jul 25,2007 05:47 PM Windows Forms 1
loading
Tags: Diagram
R. Krishna Prasadh
Asked On July 25, 2007 07:05 AM

Hi Nagaraj,
The diagram editor window looks some thing like a A4 sheet with scroll bars. How do I set the maximum width of the window. It does not happen even if I select Dock Style to Fill.

Thanks & Regards,
RKP

J.Nagarajan [Syncfusion]
Replied On July 25, 2007 05:47 PM

Hi Krishna,

Sorry for the inconvenience caused, This is default behavior of the diagram model. Because in our source code we have positioned the diagram model as A4 sheet style type. Please refer to the following code snippet in our source code.

private void ResetScrollPosition()
{
MeasureUnits docUnits = this.Model.MeasurementUnits;

// get model size
int nWidth = (int)Math.Round( MeasureUnitsConverter.ToPixelX( this.Model.Size.Width, docUnits ) );
int nHeight =(int)Math.Round( MeasureUnitsConverter.ToPixelX( this.Model.Size.Height/2, docUnits ) );

// update virtual bounds
m_rcVirtualBounds.Location = new PointF( -nWidth, -nHeight );
m_rcVirtualBounds.Size = new SizeF( nWidth, nHeight );

//update scroll min and max value
UpdateScrollRange();
// reset origin referance to update scroll value
this.ptScrollOriginRef = new PointF( this.Origin.X - 1, 0 );
// update scroll position to origin
UpdateScrolls( this.Origin );
}

We could not change this behavior in an application level. Please let me know if you have any questions.

Thanks,
Nagaraj

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;