PDA

View Full Version : function keys



Bob Worsley
18-Aug-2007, 07:47 AM
Is there any easy way to disable the "standard" function keys? F2 save,
F7/8/9? I've removed the toolbar from one of my web pages but the keys
still work...
Bob

Garret Mott
18-Aug-2007, 08:55 AM
Hi Bob -

> Is there any easy way to disable the "standard" function keys? F2 save,
> F7/8/9? I've removed the toolbar from one of my web pages but the keys
> still work...

Put tape over 'em....

Big help, eh?

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Nils G. Svedmyr
18-Aug-2007, 02:04 PM
Hi Garett,

I must say I love your sense of humor =:-)

Cheers,
Nils G. Svedmyr
RDC Tools International

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:yKUQ49Z4HHA.3456@dacmail.dataaccess.com...
> Hi Bob -
>
>> Is there any easy way to disable the "standard" function keys? F2 save,
>> F7/8/9? I've removed the toolbar from one of my web pages but the keys
>> still work...
>
> Put tape over 'em....
>
> Big help, eh?
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>I

Garret Mott
18-Aug-2007, 04:36 PM
Thanks - but I bet poor Bob thought he was getting a real answer - only to
look & see it was from that pain Garret.<g>

So - I'll be helpful for a change (gotta try something new every once in a
while)...

Take a look in the C:\Program Files\Visual DataFlex AJAX Library
1.0\AppHtml\VdfAjaxLib\1.0\Js folder. You'll find a bunch of VDF*.js files.

Open VDFForm.js & search for "executes the action that belongs to the
keyaction". Below it are the key functions.

How you go about using a version of the file that doesn't have these
keyactions is something to figure out. If the whole site doesn't use
function keys, I'd guess you could make copies that don't use these.
Problem is - you'd need to remove 'em for every control.

Or - (& as person better with JS than I might be able to answer this) -
maybe you can set a global property that the JS checks & surround the
function key code with an If block?

I still think tape would be easiest - although you could (if you want to get
fancy) just take the keys off.

HTH

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Garret Mott
18-Aug-2007, 04:38 PM
Oops...

(& as person

Should be

(& a person

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com

Edwin van der Velden
19-Aug-2007, 09:05 AM
setting vdfAttachVdfKeyActions="false" on the form should disable the
function keys.

-Edwin




"Bob Worsley" <bworsley@comcast.net> wrote in message
news:hiAMmWZ4HHA.6020@dacmail.dataaccess.com...
> Is there any easy way to disable the "standard" function keys? F2 save,
> F7/8/9? I've removed the toolbar from one of my web pages but the keys
> still work...
> Bob
>
>
>

Bob Worsley
20-Aug-2007, 07:50 AM
Old Chinese saying... "everyone likes ___ but no one likes a smart___"
Bob

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:yKUQ49Z4HHA.3456@dacmail.dataaccess.com...
> Hi Bob -
>
> > Is there any easy way to disable the "standard" function keys? F2 save,
> > F7/8/9? I've removed the toolbar from one of my web pages but the keys
> > still work...
>
> Put tape over 'em....
>
> Big help, eh?
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>
>

Bob Worsley
20-Aug-2007, 07:52 AM
Thanks much Garret, for everything, but I really like Edwin's answer the
best. Not nearly so much work! I figured there might be an easy answer.
Are you getting into this Ajax stuff?
Bob

"Garret Mott" <Garret_at_AutoMateSoftware_dot_com> wrote in message
news:EIzUh$d4HHA.5536@dacmail.dataaccess.com...
> Thanks - but I bet poor Bob thought he was getting a real answer - only to
> look & see it was from that pain Garret.<g>
>
> So - I'll be helpful for a change (gotta try something new every once in a
> while)...
>
> Take a look in the C:\Program Files\Visual DataFlex AJAX Library
> 1.0\AppHtml\VdfAjaxLib\1.0\Js folder. You'll find a bunch of VDF*.js
files.
>
> Open VDFForm.js & search for "executes the action that belongs to the
> keyaction". Below it are the key functions.
>
> How you go about using a version of the file that doesn't have these
> keyactions is something to figure out. If the whole site doesn't use
> function keys, I'd guess you could make copies that don't use these.
> Problem is - you'd need to remove 'em for every control.
>
> Or - (& as person better with JS than I might be able to answer this) -
> maybe you can set a global property that the JS checks & surround the
> function key code with an If block?
>
> I still think tape would be easiest - although you could (if you want to
get
> fancy) just take the keys off.
>
> HTH
>
> Garret Mott
>
> Auto-Mate Software www.automatesoftware.com
> Northeast DataFlex Consortium www.nedataflex.com
>
>
>

Bob Worsley
20-Aug-2007, 07:53 AM
thanks, Edwin, thought there might be an easy answer. Have a good vacation?
Bob

"Edwin van der Velden" <edwin.van.der.velden@dataaccess.nl> wrote in message
news:Wl4B2nm4HHA.5736@dacmail.dataaccess.com...
> setting vdfAttachVdfKeyActions="false" on the form should disable the
> function keys.
>
> -Edwin
>
>
>
>
> "Bob Worsley" <bworsley@comcast.net> wrote in message
> news:hiAMmWZ4HHA.6020@dacmail.dataaccess.com...
> > Is there any easy way to disable the "standard" function keys? F2 save,
> > F7/8/9? I've removed the toolbar from one of my web pages but the keys
> > still work...
> > Bob
> >
> >
> >
>
>
>

Garret Mott
21-Aug-2007, 10:59 AM
> Old Chinese saying... "everyone likes ___ but no one likes a smart___"

But what if that's the only part of my body that is smart?

I've only been playing with it so far - but have a client that (once he
scrapes up some $) Doug Lawson & I will be doing some Ajax work with.

Garret Mott

Auto-Mate Software www.automatesoftware.com
Northeast DataFlex Consortium www.nedataflex.com