WireLess Studio Widgets Developer's Guide |
Call this method to enable or disable the available function keys (F1 - F20, Arrow keys when they're mapped and ESC). This causes the Function Keys controller to never trigger any event on the target form.
VARIANT_BOOL EnableFunctionKeysByName(LPCTSTR sFormName, VARIANT_BOOL bEnable);
VARIANT_BOOL EnableFunctionKeysById(SHORT usFormId, VARIANT_BOOL bEnable);
On success, EnableFunctionKeys returns TRUE, FALSE otherwise. To get extended information, call WStError::GetLastErrorCode.
By default the function keys are enabled.
using WirelessStudioOleWidgets; WStFactory oFactory = new WStFactory(); WStForm oForm = new WStForm (); short formId = 10; oForm.EnableFunctionKeysById(formId, false); oForm.ShowById(formId, true, true);
Public wsForm As New WStForm ... Case "disableFnKeysCheckBox" If wsForm.GetLastEventIntValue() = WS_STATE_CHECKED Then wsForm.EnableFunctionKeysByName "myForm", False Else wsForm.EnableFunctionKeysByName "myForm", True End If ...
WStWiget class reference | WStForm class reference | WStFactory class reference | WStError class reference
WireLess Studio by SofToGo S.A. | Visit our site www.softogo.com | Contact us help@softogo.com |