Re: Scrollbar sanity
- From: Liska Station <msnewsJUNKFILTER@xxxxxxxxxxxxxx>
- Date: Mon, 30 Apr 2007 11:38:13 -0700
Okay! Got it figured out. If I make a tiny line object(or other object,
such as a blank label or something) and set it to move dynamically on form
refresh to be at the lower-right hand corner of my container, then life is
good. Apparently something has to MOVE into an off-form area, as opposed to
just being STRETCHED into it at runtime if you want the scrollbars and
refresh to behave correctly during runtime.
Cheers!
-LS
news:Xns992261542E068LiskaStation@xxxxxxxxxxxxx:
Another fun challenge!the
Okay, I'm trying to add a GUI to a program that a client specifically
requested. Here's the deal though - it's going to have a lot of
dynamically moving elements (...yay.)
Here's the thing. I'm trying to get the scrollbars to cooperate, and they
won't.
For example, if I put a container class on the form (with scrollbars
enabled) and then put a command button in the container, I can then put
following code in the click button's CLICK event (bear in mind this is ainside
test to simulate what I want it to do when there's LOTS of controls
the main container class):big
this.top = this.top + 500 && takes it off the bottom of the form
IF this.Parent.Height < (this.Top + this.Height) && the container isn't
enoughwas
this.Parent.Height = this.Top + this.Height && expand the parent
ENDIF
**Code for horizontal omitted
this.Parent.Refresh && doesn't help
thisform.Refresh
Well, the CONTAINER gets bigger, and although they act a tad werid, the
scrollbars seem to work, kinda sorta, but the container itself doesn't
refresh, and I can't see the command button in it until I click it again
(meaning I have to do a little scavenger-hunt type click-around until I
find it). Also the form screen will randomly go black on me and then skip
back to being grey during some iterations of the code. This was when I
getting close to command1.TOP=70000 or so, and I'm guessing that probablythere
shouldn't be a real surprise.
Anyone have any idea why this happens and how to solve? I'm not really
seeing in the vfp9 docs anything that might help. I know in VFP 6/7
was a limit on scroll size (double screen resolution), but that doesn't=
appear to be the case here, as I've gotten it to somewhere around HEIGHT
20000 to 25000 by simply assigning a huge value to "Top" to random itemson
the form, and higher using my click button. If I could just get the
container the button is in to properly refresh after it goes offscreen,
then life would be grand.
Any ideas?
Thanks!
-LS
.
- References:
- Scrollbar madness
- From: Liska Station
- Scrollbar madness
- Prev by Date: Re: Re-Post: Project Path References
- Previous by thread: Scrollbar madness
- Index(es):