Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic scrollbars disappear on larger controls (Read 9731 times)
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
scrollbars disappear on larger controls
Jan 7th, 2013 at 8:15pm
Print Post  
i can still scroll by dragging the document, so it's not a critical issue, but if i make my flowchart control fairly large (exactly how large i'm still figuring out), the horizontal and vertical scrollbars never appear. do these have some kind of maxima?

[update: it looks like dimensions larger then 1000 pixels cause the scrollbar to disappear, unless this is a coincidence with the particular document i'm working with.]
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: scrollbars disappear on larger controls
Reply #1 - Jan 7th, 2013 at 8:25pm
Print Post  
I think you should call ShowScrollers() to create scrollbar controls, and also make sure the flowchart logical size (which defines the scrollbar ranges) is large enough by calling SetDocSize or FitDocToObjects.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: scrollbars disappear on larger controls
Reply #2 - Jan 8th, 2013 at 3:31pm
Print Post  
i'm doing that, yes.

when i size the flowchart to 999 pixels, i see scrolllbars. when i size it to 1001, i don't. i forget if 1000 works or not.

there's nothing internal that limits the range?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: scrollbars disappear on larger controls
Reply #3 - Jan 8th, 2013 at 3:35pm
Print Post  
By making the control large, do you mean setting its size on the form? In that case its right and bottom boundaries might be outside the form (or a parent panel if you are using any) and so the scrollbars will get clipped. Or your flowchart's logical size might be about ~1000 pixels big in whatever unit you are using, so the scrollbars disappear when the control gets larger than the scrollable area.
« Last Edit: Jan 8th, 2013 at 5:04pm by Stoyo »  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: scrollbars disappear on larger controls
Reply #4 - Jul 18th, 2013 at 8:02pm
Print Post  
returning to this, as my "fake" scrollbars aren't as nice as yours. Smiley

setting its size on the form, yes. it's clearly within the form; the scrollbars aren't getting clipped. by the logical size, do you mean the bounds? because the bounds are as i'd expect them to be. the control is significantly smaller than the scrollable area; these are large flowcharts.

sure there's nothing in code that caps scrollbars to 1000 units?
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: scrollbars disappear on larger controls
Reply #5 - Jul 19th, 2013 at 7:40am
Print Post  
Actually 1000 units is what we assign as initial document bounds in the flowchart's constructor:

Code
Select All
m_nDocLeft = 0;
m_nDocTop = 0;
m_nDocRight = 1000;
m_nDocBottom = 1000; 



So the scrollbars will disappear if you make the control larger than that without also enlarging the document boundaries by calling SetDocSize, or FitDocToObjects with some items located at coordinates larger than 1000. Also note that loading a file will restore the boundaries that were set for the flowchart at the time of saving; if they were the default ones, the scrollbars will disappear again after LoadFromFile or LoadFromXml calls.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: scrollbars disappear on larger controls
Reply #6 - Jul 19th, 2013 at 12:38pm
Print Post  
That makes sense, but I'm calling FitDocToObjects; in this example, the window size is smaller than the flowchart size, but there's no horizontal scrollbar...

Something I'm missing, for sure.

Note that since I have DisableNoScroll set to true, the scrollbars are *always* visible if the window size < 1000, even if they're not needed (i.e. the document size is smaller than the window).
  

scrollbars.png (Attachment deleted)

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: scrollbars disappear on larger controls
Reply #7 - Jul 19th, 2013 at 1:23pm
Print Post  
1000 or last SetDocSize value is also what the minimum size set by FitDocToObjects will be if there aren't any objects located at larger coordinates at the time you call it. Make sure you are creating and placing your objects before calling FitDocToObjects.
  
Back to top
 
IP Logged
 
sbailey
Junior Member
**
Offline



Posts: 61
Location: MD
Joined: Apr 24th, 2009
Re: scrollbars disappear on larger controls
Reply #8 - Jul 19th, 2013 at 1:30pm
Print Post  
I'm definitely doing so -- iright and ileft are obtained from calling GetDocSize.
  

Editor Programmer&&Bethesda Softworks
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: scrollbars disappear on larger controls
Reply #9 - Jul 19th, 2013 at 2:33pm
Print Post  
Ok, please attach a sample project that shows the problem and our developer will check it.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint