Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Paradox > Re: Prevent the...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 1367 of 1418
Post > Topic >>

Re: Prevent the mouse scroll button

by "Egbert Babst" <EgbertBabst@[EMAIL PROTECTED] > May 13, 2008 at 03:42 AM

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
>
>
 




 3 Posts in Topic:
Prevent the mouse scroll button
"Craig" <cra  2008-05-12 16:33:23 
Re: Prevent the mouse scroll button
"Egbert Babst"   2008-05-13 03:42:19 
Re: Prevent the mouse scroll button
"Craig" <cra  2008-05-13 02:29:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 14:05:21 CDT 2008.