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
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
-
- Mensajes: 7
- Registrado: Vie May 30, 2008 3:51 pm
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
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)Â
> 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)Â
-
- Mensajes: 7
- Registrado: Vie May 30, 2008 3:51 pm
Auto scroll of TscrollBox if the focused maskeedit is out of the viewable area
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
> 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