radio.title only I

Discuss GUI programming with the RapaGUI plugin here
Post Reply
ilbarbax
Posts: 112
Joined: Thu Apr 01, 2010 6:41 pm

radio.title only I

Post 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?
SamuraiCrow
Posts: 475
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: radio.title only I

Post 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.
I'm on registered MorphOS using FlowStudio.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: radio.title only I

Post by airsoftsoftwair »

It's a MUI limitation. MUIA_FrameTitle is only I as well so RapaGUI can't do anything about that.
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: radio.title only I

Post 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
Post Reply