Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Set AutoScrollMinSize could raise a bug?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set AutoScrollMinSize could raise a bug?

 Post Reply Post Reply
Author
Message
wb197 View Drop Down
Newbie
Newbie


Joined: 07 June 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote wb197 Quote  Post ReplyReply Direct Link To This Post Topic: Set AutoScrollMinSize could raise a bug?
    Posted: 09 April 2008 at 11:03am
I have a Form embedded in Docking Pane. If I set the AutoScrollSize of the form, after I resize the pane size smaller than the minimal size, the pane size will be locked, which means I cannot drag the pane size.
I don't know if I miss anything?
 
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 09 April 2008 at 4:04pm
Hi,
 
First, what do you mean with: AutoScrollSize of the form? Is it a property in C#?
 
Did you set the min and max panesize?
You can set the min and max pane size with:
 
pane.MinTrackSize.SetSize 100,100
pane.MaxTrackSize.SetSize 100,100
 
if you set both values to same width/height you can't resize the pane!
btw it shouldn't be possible to resize the pane smaller than value of MinTrackSize.
Back to Top
wb197 View Drop Down
Newbie
Newbie


Joined: 07 June 2005
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote wb197 Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2008 at 1:31am

oh, yes, I'm in C#.

I didn't set the pane size property. I just set the form size.
It seems resizing pane size will affect the form size.
And the locking feature only occurs after the scrollbar shown.
 
I'll try set pane.MinTrackSize and pane.MaxTrackSize properties.
 
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 10 April 2008 at 11:11am
Hi,
 
When attaching a form or picturebox to a pane the contents of the pane will be resized to the size of the pane. If you want to set a minimum/maximum for the form/picturebox you can set the min/maxTrackSize.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.203 seconds.