Simplicty and flexibility!


Mouse wheel scrolling


Started by Jon Worthington
Search
You will need to Sign In to be able to add or comment on the forum!

Mouse wheel scrolling

Some of my forms have the ability to scroll through records use using the mouse wheel.  However trying to design forms with this behaviour has been more trial than error.  Can anyone give any guidance on the rules required to get this to work?

Jon


Written by Jon Worthington 24/08/16 at 14:49:31 Dataease [{8}]FIVE

Re:Mouse wheel scrolling

I gather what you mean is scroll through rows in a subform?

The behaviour of the Mouse Wheel in DataEase 8.5 is actually predictable but there is a lot of different object types to consider.

1. Scrolling of form itself. If a button or a single line field has the focus you will scroll the form itself.
2. If a multi-line field has the focus you will scroll inside the field first and when you get to the top-bottom you will start scrolling the form.
3. If the Button/Single Line field is in a subform, you will scroll the subform and then you will scroll the form.
4. If a multi-line field in a subform has the focus you will scroll the multi-line field, then the subform, then the form.


Written by DataEase 24/08/16 at 21:20:17 Dataease [{8}]FIVE

Re:Re:Mouse wheel scrolling

You will not be able to scroll the subform if a button or a editbox in the subform is not having the focus, so if you want to force this behaviour you need to fource focus onto the subform.

You can use SetFocus() to do this.


Written by DataEase 24/08/16 at 21:23:42 Dataease [{8}]FIVE
DG3_ForumList