Default button behavior

View: New views
3 Messages — Rating Filter:   Alert me  

Default button behavior

by Kenneth Spence-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If a button has the default button attribute checked and one hits the  
Enter Key or Return key the record is saved even when no short cuts  
are set and no action.  Is this normal behavior?  Using v11.4

Ken
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: Default button behavior

by David Dancy :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I believe so.

Historically, if I've wanted 4D to do something specific when the user
hits Enter or Return, I've had to create a button for the purpose and
give it the appropriate shortcut. If you don't have any shortcuts on
any buttons, in my experience 4D applies the default behaviour of
Enter, Return and Escape, which are set in
Preferences/Application/Shortcuts.

HTH

David Dancy
Sydney, Australia



2009/11/6 Kenneth Spence <spenceke@...>:
> If a button has the default button attribute checked and one hits the Enter
> Key or Return key the record is saved even when no short cuts are set and no
> action.  Is this normal behavior?  Using v11.4
>
> Ken
**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com


4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************

Re: Default button behavior

by Kenneth Spence-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't see any Shortcut preferences for Enter, Return or Escape.  I  
do see where shortcuts can be set for Accept and Cancel of input forms  
and accept for Subforms but I don't have any shorts cuts for these set.

I really only set the default button for the graphic look which form  
the Documentation is all it really is for.  It appears there is some  
undocumented action that the default button has other than a graphic  
change.  I have tried setting the text to a color to make the button  
more noticeable but it never has worked for me on a Mac.  I have seen  
the color text work on Windows.

I tried setting another button with a shortcut of Enter and the  
Default button still ran.  The only form event I have set in the  
Default button is on clicked.

Ken

On Nov 5, 2009, at 9:12 PM, David Dancy wrote:

> I believe so.
>
> Historically, if I've wanted 4D to do something specific when the user
> hits Enter or Return, I've had to create a button for the purpose and
> give it the appropriate shortcut. If you don't have any shortcuts on
> any buttons, in my experience 4D applies the default behaviour of
> Enter, Return and Escape, which are set in
> Preferences/Application/Shortcuts.
>
> HTH
>
> David Dancy
> Sydney, Australia
>
>
>
> 2009/11/6 Kenneth Spence <spenceke@...>:
>> If a button has the default button attribute checked and one hits  
>> the Enter
>> Key or Return key the record is saved even when no short cuts are  
>> set and no
>> action.  Is this normal behavior?  Using v11.4
>>
>> Ken
> **********************************************************************
> Get the speed and power of 4D v11 SQL
> before upgrade prices increase - http://www.4d.com
>
>
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4D.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4D_Tech-Unsubscribe@...
> **********************************************************************

**********************************************************************
Get the speed and power of 4D v11 SQL
before upgrade prices increase - http://www.4d.com
   

4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4D.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4D_Tech-Unsubscribe@...
**********************************************************************