dbTalk Databases Forums  

Prevent the mouse scroll button

comp.databases.paradox comp.databases.paradox


Discuss Prevent the mouse scroll button in the comp.databases.paradox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Craig
 
Posts: n/a

Default Prevent the mouse scroll button - 05-12-2008 , 03:33 PM






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



Reply With Quote
  #2  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM






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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #3  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #4  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #5  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #6  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #7  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #8  
Old   
Egbert Babst
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-12-2008 , 08:42 PM



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}
Quote:
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
Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
Quote:
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





Reply With Quote
  #9  
Old   
Craig
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-13-2008 , 01:29 AM



Egbert,
That worked beautifully! I have also disabled certain keystrokes essentially
doing the same thing.
Thanks
Craig



"Egbert Babst" <EgbertBabst (AT) BabstSoft (DOT) com> wrote

Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
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







Reply With Quote
  #10  
Old   
Craig
 
Posts: n/a

Default Re: Prevent the mouse scroll button - 05-13-2008 , 01:29 AM



Egbert,
That worked beautifully! I have also disabled certain keystrokes essentially
doing the same thing.
Thanks
Craig



"Egbert Babst" <EgbertBabst (AT) BabstSoft (DOT) com> wrote

Quote:
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 (AT) nospam (DOT) comcast.net> schrieb im Newsbeitrag
news:4828a98b$1 (AT) pnews (DOT) thedbcommunity.com...
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







Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.