From c933e5441f42c0885df06c319205d289f8e842b8 Mon Sep 17 00:00:00 2001 From: FellippeHeitor Date: Mon, 5 Nov 2018 22:52:16 -0300 Subject: [PATCH] Returns existing ID of menu panel if already active. --- InForm/InForm.ui | 1 + 1 file changed, 1 insertion(+) diff --git a/InForm/InForm.ui b/InForm/InForm.ui index 9dc4a82..c9a1c40 100644 --- a/InForm/InForm.ui +++ b/InForm/InForm.ui @@ -5977,6 +5977,7 @@ SUB __UI_ActivateMenu (This AS __UI_ControlTYPE, SelectFirstItem AS _BYTE) IF __UI_GetID(RTRIM$(This.Name) + CHR$(254) + "Panel") > 0 THEN __UI_ActiveMenu(__UI_TotalActiveMenus) = __UI_GetID(RTRIM$(This.Name) + CHR$(254) + "Panel") + EXIT SUB ELSE IF __UI_TotalActiveMenus + 1 > UBOUND(__UI_ActiveMenu) THEN EXIT SUB