Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ScrollContainer
Message
From
25/12/2015 08:28:49
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
25/12/2015 08:02:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01629050
Message ID:
01629293
Views:
69
>I have: mainform containing a SBC (container) with inside a container ViewFrame and inside that numerous containers ClientArea = which is a container containing one questions with 3 mulitplechoice answers.
>Adding a new Question will ultimately add a new ClientArea on bottom. One can see the (new) CA, if is placed outside the visible area only by scrolling with the vertical scrollbutton.
>Idealy it would be that on a new adding the whole ViewFrame would go up so that the new CA is visible without any users tough of the vertical scrollbutton.
>
>So in this respect, since I am using ARG scrolling SBCONT.vcx how to make the CA visible?

I haven't used that in a while... actually it was someone else's job, so I never went through its PEM set. Does it automatically scroll to show the control with focus? Or, alternately, it should have some way to scroll it programmatically. Also, I'm not sure how ARG scroll container behaves when you add a control below the others - these should be registered somehow, as it should know when to recalculate its inner height and resize the slider on the scrollbar.

Looking at the ctl32_scontainer class, I see it has ctl32_scrolltocontrol(toCtl) method - you could probably use that.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform