HI is there some bug/clear diff that with MakeString() label hotkey doesn't work, meanwhile using MakePrefsString() it does?
Code comes from Odyssey mui.cpp/mui.h sources.
and "StringObject" is from MUI's sdk/header "#define StringObject MUI_NewObject(MUIC_String"
... APTR MakeString(CONST_STRPTR def, ULONG secret) { return StringObject, StringFrame, MUIA_CycleChain, 1, MUIA_String_AdvanceOnCR, TRUE, MUIA_String_Contents, def, MUIA_String_Secret, secret, MUIA_String_MaxLen, 1024, TAG_DONE); } APTR MakePrefsString(CONST_STRPTR str, CONST_STRPTR def, ULONG maxlen, ULONG id) { APTR obj; if ((obj = MUI_MakeObject(MUIO_String, (IPTR)str, maxlen))) SetAttrs(obj, MUIA_CycleChain, 1, MUIA_String_AdvanceOnCR, TRUE, MUIA_ObjectID, id, MUIA_String_Contents, def, TAG_DONE); return obj; } ...
Seems the problem is that the LabelObject and the StringObject aren't "linked"/binded (dunnot how to explain).
Created a new function (clone of one that works):
And works fine now.
It was:
Child, MakeLabel(GSI(MSG_URLPREFSGROUP_COOKIE_FILTER)),
Child, st_cookie_filter = (Object *) MakeString(".*", FALSE),
Now I changed to
Child, MakeLabel(GSI(MSG_URLPREFSGROUP_COOKIE_FILTER)),
Child, st_cookie_filter = (Object *) MakeString2(GSI(MSG_URLPREFSGROUP_COOKIE_FILTER), ".*", 1024),
AOS4.1/SAM460ex/PPC460EX-1155MHZ/2048MB/RadeonHD6570/SSD120GB/DVDRW :-P