Home > Software engineering >  Use ScrollView class dragging a scroll bar cannot show all content on the view
Use ScrollView class dragging a scroll bar cannot show all content on the view

Time:10-19

Masters:
I meet a problem now, is to use ScrollView classes for the base class generated views (with the scroll bar) cannot by dragging the scroll bar on the display all contents,
Background:
1, the SDI program;
2, inherit the ScrollView, derived a few different view;
3, inherited SplitterWnd class, SDI will be divided into different parts;
4, in each view (derived from the ScrollView class) will have something different to show, mainly some controls (EditBox, ComboBox, CheckBtn, Button, etc.),
Current status:
1, SDI segmentation has been completed;
2, each division is generated on the part of the view (derived from the ScrollView class);
4, each view is dynamic (please note that each control are dynamically generated, because the number controls, name, type will become) generates various controls,
Meet problem:
1, and now my view on because of the size of the program is started, can only display controls, 10 more controls are shown not to come out;
2, if the extra 10, more controls will be from the position of the first control to regenerate, thus formed the cover;
3, the current view can see outside the scope of the interface are shown not to come out, after scroll is the ghosting,
Effect of hope:
Can display more than 10 control, controls each view is along the Y direction one by one, will be seen beyond the current view, but by dragging the scroll bar can see and manipulate,

Please come with a recruit, sorrow to death me!!!!!!!!!!!

CodePudding user response:

CScrollView: : SetScrollSizes ever?

CodePudding user response:

No,,,

CodePudding user response:

I also encountered this problem,

CodePudding user response:

Originally I do more than view height, scroll bar, also can not drag the scroll bar;
After changing this style, you can;
  • Related