PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Just starting out? Need help? Post your questions and find answers here.
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Post 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?
S.T.V.B.E.E.V.
User avatar
jacdelad
Addict
Addict
Posts: 1991
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Post 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
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Post 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.
S.T.V.B.E.E.V.
Fred
Administrator
Administrator
Posts: 18154
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Post 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.
pamen
Enthusiast
Enthusiast
Posts: 193
Joined: Sat Dec 31, 2022 12:24 pm
Location: Cyprus
Contact:

Re: PB 6.1 Beta4/5 - Weird default IME context menu in String gadgets

Post 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.
S.T.V.B.E.E.V.
Post Reply