Egbert,
That worked beautifully! I have also disabled certain keystrokes
essentially
doing the same thing.
Thanks
Craig
"Egbert Babst" <EgbertBabst@[EMAIL PROTECTED]
> wrote in message
news:4828f203@[EMAIL PROTECTED]
> Craig,
> short time before I answered a similar question in a French newsgroup by
> copying (and translating) a former post of mine.
> Here a copy of the English text:
> ------------------->
> {See corel.wpoffice.paradox-opal, Disable the wheel on a mouse? 28.
April
> 2004 15:39}
>>>>
> Paul,
> I know the same problem and its really bothering, if you change a record
> without intention.
> The same thing happens to me when scrolling in internet-forms with the
> mouse wheel.
> I do understand your concerns.
> Nevertheless I would agree with Jim. Disabling the wheel function may
> appear as a weakness of your app for the costumer.
> So it's better to distinguish, which field is active and to chose the
best
> action (setting the event you like and disable the default or use
> setErrorCode(userError).
> This does not apply to actions fired by key-pressing. But to all
> menu-actions, this means also clicks on icons in the toolbar, are
> involved.
> Please note: The wheel-move triggers first an menuAction event. Here you
> can use some method to decide what to do.
> For example: I do redirect the NextRecord to FieldForward in some
critical
> cases.
>
> method menuAction(var eventInfo MenuEvent)
> var
> siID smallInt
> uiActive uiObject
> stAName string
> endVar
>
> if eventInfo.isPreFilter() then
> ;// This code executes for each object on the form
> siID=eventInfo.ID()
> if (siID=MenuRecordNext OR siID=MenuRecordPrevious) then
> stAName=active'name
> view("Wheel or not wheel, that is the question!",stAName)
> switch
> case stAName="myField": ;do something
> case stAName="yourField": ;do something different
> ;...
> endSwitch
> ; Code here
> endIf
>
> else
> ;// This code executes only for the form
>
> endIf
> endMethod
>>>>
>
> HTH
> Egbert
>
> --
> _______________________________
> Babst, Institutionsberatung,
> BabstSoft e.K.
> Ludwigstr. 86
> 64546 Mörfelden-Walldorf
> Tel: 06105 74974
> Handelsregister:
> Amtsgericht Darmstadt HRA 53360
> www.BabstSoft.com
> _______________________________
> "Craig" <craig.futterman@[EMAIL PROTECTED]
> schrieb im Newsbeitrag
> news:4828a98b$1@[EMAIL PROTECTED]
>> If I have a form of many records (1 record per page). How do I prevent
>> the user from scrolling to another existing record using the mouse
scroll
>> button. I know how to intercept keyboard stuff, just not mouse
scrolling.
>> Thanks,
>> Craig Futterman
>>
>>
>
>


|