Radio class and misc questions

Discuss GUI programming with the MUI Royale plugin here
Post Reply
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Radio class and misc questions

Post by djrikki »

Hi,

1. Does MUI not support hichar and controlchar on radio gadgets? So I can match the left image against the right image.

2. The hgroup frame on the left 'File format' - how can I get it to match the window on the right? I tried adding sameheight="true" to no avail.

3. lol Odd behaviour the icon for the 'Save as' never loaded for the purpose of taking this screenshot... however on next run it loaded okay

http://www.lakemarketingandevents.co.uk ... ture13.png

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application base="Jack">
	<window title="Save as" muiid ="ISAV" notify="closerequest" sizegadget="false">
		<vgroup spacing="20">
			<hgroup>
				<hgroup frame="group" frametitle="File Format" background="groupback">
					<radio id="imageformat" notify="active" cyclechain="1">
					<item>Save as BMP</item>
					<item>Save as GIF</item>
					<item>Save as IFF</item>
					<item>Save as JPG</item>
					<item>Save as PNG</item>
					<item>Save as WebP</item>
					</radio>
				</hgroup>
				<hgroup frame="group" frametitle="Image Options" background="groupback">
					<vgroup>
						<button id="resizeoptions" hichar="r" controlchar="r">\33A[18] Resize Image(s)</button>
						<button id="comment" hichar="t" controlchar="t">\33A[43] Add comment</button>
						<vspace height="75"/>
						<hgroup>
							<label key="z">Resize?</label>
							<checkmark id="resize" controlchar="z" notify="selected" cyclechain="1"/>
						</hgroup>
					</vgroup>
				</hgroup>
			</hgroup>
			<hgroup frame="group" frametitle="Info" background="groupback">
			<floattext>Keep same dimensions: 1360 x 1020 pixels</floattext>
			</hgroup>
			<hgroup>
			<button id="save" hichar="s" controlchar="s">\33A[59] Save</button>
			<button id="saveas" hichar="a" controlchar="a">\33A[61] Save as</button>
			<button id="cancel" hichar="c" controlchar="c">\33A[78] Cancel</button>
			</hgroup>
		</vgroup>
	</window>
</application>
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
Mazze
Posts: 69
Joined: Thu May 06, 2010 8:08 pm

Re: Radio class and misc questions

Post by Mazze »

Change the hgroup to a vgroup and add a <rectangle />

Code: Select all

            <vgroup frame="group" frametitle="File Format" background="groupback">
               <radio id="imageformat" notify="active" cyclechain="1">
                   <item>Save as BMP</item>
                   <item>Save as GIF</item>
                   <item>Save as IFF</item>
                   <item>Save as JPG</item>
                   <item>Save as PNG</item>
                   <item>Save as WebP</item>
               </radio>
               <rectangle />
            </vgroup>
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Radio class and misc questions

Post by airsoftsoftwair »

I don't think it's possible to use automatic keyboard shortcuts for radio objects but I'm not sure. Maybe ask on the MUI mailing list about this.
djrikki
Posts: 682
Joined: Wed Apr 06, 2011 12:26 am

Re: Radio class and misc questions

Post by djrikki »

HI Andreas,

Different question this time, how do I address any items in a Radio Class to change their properties? I want to be able to, in my case, hide or disabled the 'Save as WebP' option.

Is this possible or do I have to go the long way around and create two separately vgroups and toggle them instead?

Thanks.

Code: Select all

            <vgroup frame="group" frametitle="File Format" background="groupback">
               <radio id="imageformat" notify="active" cyclechain="1">
                   <item>Save as BMP</item>
                   <item>Save as GIF</item>
                   <item>Save as IFF</item>
                   <item>Save as JPG</item>
                   <item>Save as PNG</item>
                   <item id="saveas-webp">Save as WebP</item>
               </radio>
               <rectangle />
            </vgroup>
Evolve - Rapid GUI Development tool for MUI Royale and RapaGUI
http://myevolve.wordpress.com
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Radio class and misc questions

Post by airsoftsoftwair »

Yes, you have to create separate radio objects AFAIK. I don't see how it would be possible to show/hide single radio object items on the fly.
Post Reply