Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

scroll multiple editfields (Real Studio network user group Mailinglist archive)

Back to the thread list
Previous thread: Re: How to prevent 'proportionlal spacing' in listboxes
Next thread: Re: Quesa Polyhedrons


Win32 API Declares   -   Berg, Heath
  scroll multiple editfields   -   William Antonacchio
   Re: scroll multiple editfields   -   Terry Ford
   Re: scroll multiple editfields   -   Asher Dunn
   Re: scroll multiple editfields   -   Terry Ford

scroll multiple editfields
Date: 01.08.05 16:24 (Mon, 1 Aug 2005 11:24:20 -0400)
From: William Antonacchio
I will have a series of editfields down the window and need to scroll
down to the ones not yet visible.

Should I use the Canvas control to contain them or is something else
more appropriate?

Thanks,
Bill
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: scroll multiple editfields
Date: 01.08.05 22:03 (Mon, 01 Aug 2005 14:03:51 -0700)
From: Terry Ford

On 1-Aug-05, at 8:24 AM, William Antonacchio wrote:

> I will have a series of editfields down the window and need to scroll
> down to the ones not yet visible.
>
> Should I use the Canvas control to contain them or is something else
> more appropriate?

It's pretty hard to imagine the window you describe but I'll make a
guess.

Putting Editfields on a Canvas is one way to display multiple
controls on a window that combined, are greater than the size of the
window. It will work if you are careful to refresh the canvas when
you scroll it.

Personally, I think this is bad UI and I have yet to see it in an
application that I consider user friendly. I would use other means to
accomplish this task; such as separate windows or Page Panels.

Just my opinion,

Terry Ford

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: scroll multiple editfields
Date: 10.08.05 03:20 (Tue, 9 Aug 2005 22:20:23 -0400)
From: Asher Dunn

On Aug 1, 2005, at 5:03 PM, Terry Ford wrote:

>> I will have a series of editfields down the window and need to scroll
>> down to the ones not yet visible.
>>
>> Should I use the Canvas control to contain them or is something else
>> more appropriate?
>
> [snip]
>
> Personally, I think this is bad UI and I have yet to see it in an
> application that I consider user friendly. I would use other means to
> accomplish this task; such as separate windows or Page Panels.
>
> Just my opinion,

While I agree with Terry, there is an easy way to do what William
wanted (RB 2005 only). Put your Editfields in a ContainerControl
(making sure the containerControl is big enough to show all the
EditFields), and then simply change the containerControl's top property
to scroll your EditFields.

HTH

Asher Dunn
--------------------------------------------------------
President and Head Developer of Fireye Software
<http://www.fireyesoftware.com/>
AIM and Yahoo: fireye7517

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Re: scroll multiple editfields
Date: 10.08.05 17:06 (Wed, 10 Aug 2005 09:06:03 -0700)
From: Terry Ford

On 9-Aug-05, at 7:20 PM, Asher Dunn wrote:

> While I agree with Terry, there is an easy way to do what William
> wanted (RB 2005 only). Put your Editfields in a ContainerControl
> (making sure the containerControl is big enough to show all the
> EditFields), and then simply change the containerControl's top
> property to scroll your EditFields.

Actually, one would need 2005 Pro to use a container control. I don't
agree with that but that's RS's decision.

What was uncertain was what the original poster wished to do in their
window. If he simply wants to scroll the entire contents of the
window, then a Canvas is the route to use. There is an example by
Seth Willits of this at ResExcellence that does just that.

<http://www.resexcellence.com/realbasic/articles/2004/05-29-04/>

The download is:
<http://www.resexcellence.com/realbasic/articles/2004/05-29-04/
downloads/ScrollingWindowExample.sit>

The only code required is:

A Property named LastScrollValue As Integer

and the following code in the ScrollBar.ValueChanged event:

WindowBackground.Scroll 0, (LastScrollValue - me.Value) * 4
LastScrollValue = me.Value

If you want it to work with a scrollwheel add:

WindowBackground.Refresh

to the above code or else the Canvas redraws incorrectly. It also
works in 5.5.x.

Terry

PS. There are lots of features in 2005 that I am still exploring that
use a ContainerControl for scrolling portions of windows. :)
T.

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>