Hi,
I just noticed what must be a (recent) bug in MUI on OS4:
I have added a MUIA_String_EditHook and it is supposed to be called with a number of field, like IEvent, but with MUI it is not.
On ReAction it works fine, and I'm 100% sure it must have worked before because I implemented the code 15 years ago for MUI and RA in parallel.
I have a normal StringObject, like this:
Child, o[FSSTR]=StringObject,
StringFrame,
MUIA_ControlChar, 'f',
MUIA_String_MaxLen, STRLEN,
MUIA_String_Contents, Findtext,
MUIA_String_EditHook, &reqwinhook,
End,
Here is the content of the SGWork in the hook on MUI vs. RA on OS4:
//muios4 reqwinfunc:
StringInfo=0x513f6b94, WorkBuffer=0x4d6d1018, PrevBuffer=0x49897d60,
Modes=16,
IEvent=0,
Code=98, BufferPos=1, NumChars=1, Actions=17, LongInt=0,
GadgetInfo=0, EditOp=8
//ra-os4 reqwinfunc:
StringInfo=0x4d074a34, WorkBuffer=0x54e599b8, PrevBuffer=0x552959b8,
Modes=0,
IEvent=0x6f0e7670,
Code=98, BufferPos=1, NumChars=1, Actions=17, LongInt=0,
GadgetInfo=0x6f295c16, EditOp=8
As you can see, the MUI hook is missing IEvent and GadgetInfo.
The whole point of the hook is to read the up/down arrow keys and navigate a list (string history).
But the hook isn't even called for rawkeys on MUI, so becomes useless even if I could work around the missing IEvent.
This must have worked before, otherwise I wouldn't have implemented it for MUI, but only for RA where it works fine.
muimaster.library 21.227 (2021-08-31)
Copyright (C) 2006-2021 by Thore Boeckelmann, Jens Maus [AmigaOS4/PPC] [git efa6e87] [20210831]
String.mui 21.51 (2021-08-31)
Copyright (C) 2006-2021 by Thore Boeckelmann, Jens Maus [AmigaOS4/PPC] [git efa6e87] [20210831]