From ee23690fa6c847a5284f8145e73328cdaab2b617 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 21 Nov 2023 19:01:35 +0300 Subject: SRMM toolbar buttons that require input window to be visible are marked as BBBF_NOREADONLY --- plugins/TranslitSwitcher/src/TranslitSwitcher.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TranslitSwitcher/src') diff --git a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp index eee021c5bd..833907bd98 100644 --- a/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp +++ b/plugins/TranslitSwitcher/src/TranslitSwitcher.cpp @@ -85,27 +85,27 @@ int OnModulesLoaded(WPARAM, LPARAM) g_plugin.registerIcon("TabSRMM/TranslitSwitcher", iconList); BBButton bbd = {}; - bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON | BBBF_ISRSIDEBUTTON; + bbd.bbbFlags = BBBF_ISIMBUTTON | BBBF_ISCHATBUTTON | BBBF_ISRSIDEBUTTON | BBBF_NOREADONLY; bbd.pszModuleName = "Switch Layout and Send"; bbd.pwszTooltip = TranslateT("Switch Layout and Send"); bbd.hIcon = iconList[0].hIcolib; bbd.dwButtonID = 1; bbd.dwDefPos = 30; - Srmm_AddButton(&bbd, &g_plugin); + g_plugin.addButton(&bbd); bbd.pszModuleName = "Translit and Send"; bbd.pwszTooltip = TranslateT("Translit and Send"); bbd.hIcon = iconList[1].hIcolib; bbd.dwButtonID = 1; bbd.dwDefPos = 40; - Srmm_AddButton(&bbd, &g_plugin); + g_plugin.addButton(&bbd); bbd.pszModuleName = "Invert Case and Send"; bbd.pwszTooltip = TranslateT("Invert Case and Send"); bbd.hIcon = iconList[2].hIcolib; bbd.dwButtonID = 1; bbd.dwDefPos = 50; - Srmm_AddButton(&bbd, &g_plugin); + g_plugin.addButton(&bbd); return 0; } -- cgit v1.2.3