Re: forms containers & scroll

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



and the scrollbar class would be based on what class?
"Bernhard Sander" <fuchs@xxxxxxxxxxxxxx> wrote in message
news:OEk0v9s6FHA.2192@xxxxxxxxxxxxxxxxxxxxxxx
> Hi lew
>
>> I have a form that does an addobject(Container...) at run time. The
>> container may grow in height depending on how many data entry controls
>> are added to the container (also at run time). This results in a
>> container height that is greater than the host form's height. I'd like to
>> use scrollbars and define a scrollable portion of the form, so the form's
>> command buttons will remain at the bottom of the form and the container
>> will be scrolled in the 'scrollable' portion. I suppose this has
>> something to do with setviewport(), but I can't get the hang of how to
>> make this work.
>> Help requested.
>
> The scrollbars property of a form only defines the scrollbars for the
> whole form, not for a portion of the form. To have only a portion of a
> form scrollable is quite a lot of work: define some scrollbar classes. Put
> a container on the form (this will become the scrollable portion). In this
> container put your scrollbar objects and another container. Your
> scrollbars will move this inner container as necessary. Into the inner
> container you put all of your data entry controls.
>
> With setviewport() you move the inner part of a scrollable form while the
> form is in a scrollable state.
>
> Regards
> Bernhard Sander


.



Relevant Pages

  • Re: Scrollbar sanity
    ... refresh to behave correctly during runtime. ... Okay, I'm trying to add a GUI to a program that a client specifically ... I'm trying to get the scrollbars to cooperate, ... if I put a container class on the form (with scrollbars ...
    (microsoft.public.fox.vfp.forms)
  • Scrollbar madness
    ... if I put a container class on the form (with scrollbars ... enabled) and then put a command button in the container, ... container the button is in to properly refresh after it goes offscreen, ...
    (microsoft.public.fox.vfp.forms)
  • Re: forms containers & scroll
    ... container may grow in height depending on how many data entry controls are added to the container. ... I'd like to use scrollbars and define a scrollable portion of the form, so the form's command buttons will remain at the bottom of the form and the container will be scrolled in the 'scrollable' portion. ... Into the inner container you put all of your data entry controls. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: a scrollbars problem
    ... But I tried the container and found it has no scrollbars. ... > Microsoft Visual FoxPro MVP ... >> SamU ...
    (microsoft.public.fox.vfp.forms)
  • Printing contents of a table having scrollbars by way of div
    ... I Have a html table that has scrollbars. ... problem is that when i use windows.print it does not print the portion of ... Prev by Date: ...
    (microsoft.public.scripting.jscript)