Página 1 de 1
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
Publicado: Vie May 30, 2008 3:51 pm
por Mike Evans
We have the following situation. In a window we've added a tScrollbox
control. Inside this control we've add to maskedits. The first maskedit is
inside the viewable area of the TScrollBox. The second maskedit not. When
we run the program the focus goes correctly to the first maskedit but when
we press the tab key the focus goes to the next maskedit but the TScrollbox
does not scroll and the 2nd maskedit its not inside the viewable area. If
we scroll the TScrollbox we can see the 2nd maskedit. What we want is this
scroll to be done automatically. Is it possible somethink like that?
Thanks in advance
Mike Evans
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
Publicado: Dom Jun 01, 2008 10:14 pm
por jfgimenez
Mike,
> We have the following situation. In a window we've added a tScrollbox
> control. Inside this control we've add to maskedits. The first maskedit is
> inside the viewable area of the TScrollBox. The second maskedit not. When
> we run the program the focus goes correctly to the first maskedit but when
> we press the tab key the focus goes to the next maskedit but the
> TScrollbox
> does not scroll and the 2nd maskedit its not inside the viewable area. If
> we scroll the TScrollbox we can see the 2nd maskedit. What we want is this
> scroll to be done automatically. Is it possible somethink like that?
Here you are a little sample that shows how to do it.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
Attached files ScrollBox.zip (2 KB)Â
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
Publicado: Mar Jun 03, 2008 12:04 pm
por Mike Evans
On Sun, 1 Jun 2008 22:14:56 +0200, Jose F. Gimenez wrote:
> Mike,
>
>> We have the following situation. In a window we've added a tScrollbox
>> control. Inside this control we've add to maskedits. The first maskedit is
>> inside the viewable area of the TScrollBox. The second maskedit not. When
>> we run the program the focus goes correctly to the first maskedit but when
>> we press the tab key the focus goes to the next maskedit but the
>> TScrollbox
>> does not scroll and the 2nd maskedit its not inside the viewable area. If
>> we scroll the TScrollbox we can see the 2nd maskedit. What we want is this
>> scroll to be done automatically. Is it possible somethink like that?
>
> Here you are a little sample that shows how to do it.
Jose,
Thank it worked. We've made some additions to do the same horizantalyy and
vertically.
Regards
Mike Evans