Page 1 of 1
PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Posted: Wed Feb 07, 2024 9:01 am
by pamen
Hi
StringGadget in 6.1 sports (on Windows) system generated edit menu with IME options,
for normal users this is an overkill (unless they understand IME special codes for reversing the direction of inline text or compositing Arabic characters), how can I get rid of the menu or at least IME options?
Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Posted: Wed Feb 07, 2024 11:57 am
by jacdelad
I'm not sure, but combining some of these flags (or only one) should help:
Code: Select all
SendMessage_(GadgetID(#MyGadget),#EM_SETIMESTATUS,0,#EMSIS_COMPOSITIONSTRING,Flag)
Where Flag one/a combination of:
Code: Select all
#EIMES_GETCOMPSTRATONCE
#EIMES_CANCELCOMPSTRINFOCUS
#EIMES_COMPLETECOMPSTRKILLFOCUS
https://learn.microsoft.com/en-us/windo ... timestatus
Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Posted: Wed Feb 07, 2024 12:12 pm
by pamen
One can intercept WM_CONTEXTMENU,
That is easy, I'm just asking why the change from 6.04
This is not a real issue, just getting IME means that by default PB now supports IME, which kind of breaks backward compatibility.
Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Posted: Wed Feb 07, 2024 12:18 pm
by Fred
Out of curiosity, I just tried with 6.04 and it seems the same (I can see IME menu in context menu). Also Notepad++ is displaying this so it looks like a system wide option. I don't think we changed something related to this in 6.10 but may be the new linker is at work again.
Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets
Posted: Wed Feb 07, 2024 1:06 pm
by pamen
Thank you Fred
I have an earlier compilation with 6.0x (not sure which though) without the IME, but like said - that is my curiosity.
not a real problem.
let's consider it then a new nice feature for linguists among us, if one does not like it - follow MS and intercept WM_CONTEXTMENU, send Right-Click instead.