Print Page | Close Window

[SOLVED] Resize pane

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=17994
Printed Date: 03 May 2024 at 3:24pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] Resize pane
Posted By: rdeboer
Subject: [SOLVED] Resize pane
Date Posted: 03 March 2011 at 5:34pm
Hi,

Is there a way to resize a pane from within the program?

I have 2 panes next to each other, the left one is a videoplayer (picturebox).

Now if i change the pane height of the videoplayer, the width should also change, to keep the video proportion correct.

I tried to change the Form.Height and Form.Width, but the pane doesn't re-fit on the new forms size.

So the pane height is done manually, and the pane width should automatically resize.

Any idea how to do this?

See Picture




-------------
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit)
Language: Visual Basic 6.0 SP6



Replies:
Posted By: Oleg
Date Posted: 04 March 2011 at 6:40am
Try such code

    ' Set Size of Pane
    A.MinTrackSize.Width = NewWidth
    A.MaxTrackSize.Width = NewWidth
        
    DockingPaneManager.RecalcLayout
    DockingPaneManager.NormalizeSplitters
    DockingPaneManager.RedrawPanes
    
    ' Restore Constraints
    A.MinTrackSize.Width = 0
    A.MaxTrackSize.Width = 32000
        



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: rdeboer
Date Posted: 04 March 2011 at 10:35am
Thank you, that worked Smile

-------------
Product: Xtreme Suite Pro (ActiveX) version 11
Platform: Windows XP SP3 (32bit)
Language: Visual Basic 6.0 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net