Page 1 of 1

Radio class and misc questions

Posted: Sun Jan 13, 2013 5:27 pm
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>

Re: Radio class and misc questions

Posted: Mon Jan 14, 2013 7:50 pm
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>

Re: Radio class and misc questions

Posted: Tue Jan 15, 2013 5:34 pm
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.

Re: Radio class and misc questions

Posted: Mon Feb 25, 2013 10:04 am
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>

Re: Radio class and misc questions

Posted: Tue Feb 26, 2013 6:18 pm
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.