Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Dialog.SetKeyEquivalent
Sets the key equivalent for a button.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Dialog | 15.0 | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |
MBS( "Dialog.SetKeyEquivalent"; Index; Text ) More
Parameters
Parameter | Description | Example |
---|---|---|
Index | The index of the button. From 0 to 9. |
4 |
Text | The new key equivalent. |
Result
Returns OK or error.
Description
Sets the key equivalent for a button.This allows you to set which button is activated with escape key (Char(27)), which is activated by return key (Char(13)) and which is activated by other characters.
Examples
Set key equivalent for buttons:
Set Variable [ $r ; Value: MBS("Dialog.SetKeyEquivalent"; 0; Char(27)) // escape key ]
Set Variable [ $r ; Value: MBS("Dialog.SetKeyEquivalent"; 1; Char(13)) // return key ]
Set Variable [ $r ; Value: MBS("Dialog.SetKeyEquivalent"; 2; "e") // e key ]
See also
Release notes
- Version 15.0
- Added Dialog.SetKeyEquivalent and Dialog.GetKeyEquivalent functions for macOS to control key equivalents for dialog buttons.
Blog Entries
- New in MBS FileMaker Plugin 15.0
- Neues MBS Plugin 15.0 für Claris FileMaker
- MBS Plugin 15.0 for Claris FileMaker
- MBS FileMaker Plugin, version 14.6pr1
This function is free to use.
Created 21st November 2024, last changed 21st November 2024
