Page 1 of 1

radio.title only I

Posted: Mon Jan 25, 2021 9:34 am
by ilbarbax
I noticed that radio title can be set only on the xml

in fact moai.Set("radio1","Title",Cat_string$[2]) gives me an error

But in the light of applying the catalog translations of the whole window contents this would be necessary to have a consistent form.

Is this something achievable?

PS I haven't checked yet but I suspect that also items have this limitation?

Re: radio.title only I

Posted: Wed Jan 27, 2021 9:31 pm
by SamuraiCrow
You are correct that the only option you have is to do text substitution on the XML before you initialize the GUI. There are text-based substitution commands that may help the situation. Look at PatternReplaceStr() and ReplaceStr() to do so. I hope to add a template feature into RapaEdit someday to automate the procedure somewhat.

Re: radio.title only I

Posted: Thu Jan 28, 2021 10:40 pm
by airsoftsoftwair
It's a MUI limitation. MUIA_FrameTitle is only I as well so RapaGUI can't do anything about that.

Re: radio.title only I

Posted: Sun Apr 25, 2021 5:54 pm
by airsoftsoftwair
Since newer MUI versions seem to no longer have the limit of a static frame title (see here) I've now changed this for Radio.Title as well.

Code: Select all

- New: Radio.FrameTitle also has an applicability of ISG now instead of I; the same restrictions as with Group.FrameTitle apply