On Mon, 27 Sep 1999, Dave Cragg wrote:
> I just discovered some unexpected consequences of the mouse-wheel
> support for Windows.
>
> Metacard fields will automatically scroll when you turn the
> mouse-wheel on a Windows mouse that has such a doodad. However, this
> may not be always what you want. For example, in a multi-column list
> with synchronized fields, one of the fields will scroll independently
> of the others unless you catch the mouse-wheel action.
>
> It seems the only way to catch a mouse-wheel action is in a
> rawKeyDown handler. (65308 and 65309 are the arguments for down and
> up scrolling respectively.)
Correct.
> Questions:
>
> Are the keyboard codes platform dependent? If so, do these codes
> (65308,65309) do anything on non-Windows platforms?
No and no.
> Do any other platforms support a mouse-wheel?
Not, natively, no. There's been suggestions to make them work on
Linux systems, but I don't know of anything but rough prototypes for
this so far. MacOS doesn't natively support mouse-wheel mice, nor has
Apple announced anything about this that we've seen. There are
scrolling mouses available for MacOS, but they only work with TextEdit
controls (which MetaCard doesn't use) and the vendors of those mice
have ignored our requests for specifications on how to make them work
in some way other than hacking the low-level OS routines the way they
do now.
> Are there any other ways to control the mouse-wheel that I've missed?
> (field properties, mouseWheel messages, etc.)
Nope.
> Wouldn't it be better to have automatic mouse-wheel support in fields
> only if the field in question has a vertical scrollbar? (The
> assumption being that fields without scrollbars will not be scrolled
> in the conventional way, if at all.)
Fields without scrollbars still scroll if you move the cursor or use
find, so it doesn't seem to me that the new behavior isn't really
inconsistent. Besides, storing non-visible stuff in fields is not a
very efficient way to do things. Use custom properties instead.
Regards,
Scott
> Cheers
> Dave Cragg
> _____________________________________________
> The LACS Centre (Business English Training Resources)
> mailto:[EMAIL PROTECTED]
> http://www.lacscentre.co.uk
> _____________________________________________
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...