Listview visible entries

Discuss GUI programming with the MUI Royale plugin here
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview visible entries

Post by airsoftsoftwair »

These rectangle objects look wrong... they shouldn't be necessary but it's still strange that you get these empty spaces. Can you post the full XML?
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

Re: Listview visible entries

Post by GMKai »

Code: Select all

<?xml	version="1.0"	encoding="iso-8859-1"?>
<application id="app"	base="HSMGAME" menustrip="menu">
	<menustrip id="menu">
		<menu	title="HollywoodSoccerManager">
			<item	id="mn_about"	notify="selected"	shortcut="?">About...</item>
			<item	id="mn_aboutmui" notify="selected">About MUI...</item>
			<item	id="mn_aboutmuiroyale" notify="selected">About MUI Royale...</item>
			<item/>
			<item	id="mn_quit" notify="selected" shortcut="Q">Quit</item>
		</menu>
		<menu	title="Settings">
			<item	id="mn_muisettings"	notify="selected"	shortcut="S">MUI...</item>
		</menu>
	</menustrip>
	<window	title="HSM-Game" id="win"	muiid="HSMW" height="640"	width="480"	notify="closerequest"	userightborderscroller="false" usebottomborderscroller="false">
		<vgroup	id="pgr" title="HSM-Menu"	pagemode="true"	frame="group"	background="groupback" samesize="true">
			<vgroup	id="MainMenu"	title="Main	Menu"	frame="group"	frametitle="MainMenu"	background="groupback">
				<rectangle/>
				<hgroup	title="loadgame" frame="group" frametitle="LoadGame" background="groupback">
					<button	id="btloadgame"	notify="pressed">\33A[2]_LoadGame</button>
				</hgroup>
				<hgroup	title="newgame"	frame="group"	frametitle="NewGame" background="groupback">
					<button	id="btsetdataset"			notify="pressed">\33A[6]_Dataset</button>
					<button	id="btsetmanagername"	notify="pressed">\33A[5]_Managername</button>
					<button	id="btsetclub"				notify="pressed">\33A[7]_Club</button>
					<button	id="btsetlanguage"		notify="pressed">\33A[18]_Language</button>
				</hgroup>
				<hgroup	title="startgame"	frame="group"	frametitle="Start" background="groupback">
					<button	id="btstartgame" disabled="true" notify="pressed">\33A[3]_StartGame</button>
					<button	id="btclearselection"	notify="pressed">\33A[19]_ClearSelection</button>
				</hgroup>
				<rectangle/>
			</vgroup>
			<vgroup	id="InGameMenu"	title="InGame	Menu"	pagemode="true"	samesize="true"	frame="group"	frametitle="Game"	background="groupback">
				<vgroup	title="overview" frame="group" background="groupback">
					<rectangle/>
					<hgroup	frame="group"	background="groupback">
						<button	id="btstadium"		notify="pressed">\33A[4]stadium</button>
						<button	id="btcommercial"	notify="pressed">\33A[4]commercial</button>
						<button	id="btfinance"		notify="pressed">\33A[4]finance</button>
						<button	id="btteam"			notify="pressed">\33A[4]team</button>
						<button	id="bttransfer"		notify="pressed">\33A[4]transfer</button>
						<button	id="btcoach"		notify="pressed">\33A[4]coach</button>
						<button	id="btdisk"			notify="pressed">\33A[4]disk</button>
					</hgroup>
					<hgroup	frame="group"	        background="groupback">
						<button	id="btstats"		notify="pressed">\33A[4]stats</button>
						<button	id="btschedule"		notify="pressed">\33A[4]schedule</button>
						<button	id="btkickoff"		notify="pressed">\33A[4]kickoff</button>
					</hgroup>
					<rectangle/>
				</vgroup>
				<vgroup	title="stadium"	frame="group"	background="groupback">
					<rectangle/>
					<text	id="txstadiumname"></text>
					<button	id="btstadiumcapacity"		notify="pressed">\33A[4]Capacity</button>
					<button	id="btstadiumprice"			notify="pressed">\33A[8]Price</button>
					<button	id="btgotomain1"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="commercial" frame="group" background="groupback">
					<rectangle/>
					<button	id="btcommercialshirt"		notify="pressed">\33A[20]Shirt</button>
					<button	id="btcommercialtv"			notify="pressed">\33A[4]TV</button>
					<button	id="btcommercialribbon"		notify="pressed">\33A[4]Ribbon</button>
					<button	id="btgotomain2"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="finance"	frame="group"	background="groupback">
					<rectangle/>
					<button	id="btfinanceaccount"		notify="pressed">\33A[10]Account</button>
					<button	id="btfinancecredit"		notify="pressed">\33A[11]Credit</button>
					<button	id="btgotomain3"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="team" frame="group"      background="groupback">
					<rectangle/>
					<button	id="btteamcontract"			notify="pressed">\33A[4]Contract</button>
					<button	id="btteamlineup"			notify="pressed">\33A[4]Lineup</button>
					<button	id="btteamtactic"			notify="pressed">\33A[4]Tactic</button>
					<button	id="btteamtraining"			notify="pressed">\33A[4]training</button>
					<button	id="btgotomain4"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="transfer" frame="group" background="groupback">
					<rectangle/>
					<button	id="bttransferfreeagent"	notify="pressed">\33A[15]FreeAgent</button>
					<button	id="bttransferbuy"			notify="pressed">\33A[16]Buy</button>
					<button	id="bttransferoffer"		notify="pressed">\33A[17]Offer</button>
					<button	id="bttransferlend"			notify="pressed">\33A[14]Lend</button>
					<button	id="btgotomain5"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="disk" frame="group" background="groupback">
					<rectangle/>
					<button	id="btsave"					notify="pressed">\33A[2]Save</button>
					<button	id="btload"					notify="pressed">\33A[6]Load</button>
					<button	id="btend"					notify="pressed">\33A[4]End</button>
					<button	id="btgotomain6"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
				<vgroup	title="coach"	frame="group"	background="groupback">
					<rectangle/>
					<button	id="btcoachview"			notify="pressed">\33A[4]view</button>
					<button	id="btcoachfire"			notify="pressed">\33A[4]fire</button>
					<button	id="btcoachhire"			notify="pressed">\33A[4]hire</button>
					<button	id="btgotomain8"			notify="pressed">\33A[9]main</button>
					<rectangle/>
				</vgroup>
			</vgroup>
			<vgroup	id="ClubSelection" title="ClubSelection" frame="group" frametitle="ClubSelection"	background="groupback">
				<rectangle FixHeight="0"/>
				<hgroup>
					<rectangle FixHeight="0"/>
					<button	id="btshowclubdetails"		notify="pressed">\33A[13]ShowClubDetails</button>
					<button	id="btclearclubselection"	notify="pressed">\33A[19]ClearSelection</button>
					<button	id="btgotomain7"			notify="pressed">\33A[9]main</button>
					<rectangle FixHeight="0"/>
				</hgroup>
				<hgroup>
					<rectangle FixHeight="0"/>
					<vgroup	id="listofleagues" disabled="false"	frame="group"	frametitle="Leaguelist">
						<listview	id="leaguelist"	autovisible="true" MultiSelect="None"	frame="InputList"	notify="active">
							<column	title="ID"></column>
							<column	title="Name"></column>
							<column	title="Nation"></column>
						</listview>
					</vgroup>
					<vgroup	id="listofclubs" disabled="false"	frame="group"	frametitle="Clublist">
						<listview	id="clublist"	autovisible="true" MultiSelect="None"	frame="InputList"	notify="active">
							<column	title="ID"></column>
							<column	title="Name"></column>
							<column	title="League"></column>
							<column	title="Account"></column>
							<column	title="Stadium"></column>
						</listview>
					</vgroup>
					<rectangle FixHeight="0"/>
				</hgroup>
				<rectangle FixHeight="0"/>
			</vgroup>
		</vgroup>
	</window>
</application>
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview visible entries

Post by airsoftsoftwair »

Your <rectangle> objects seem to cause this trouble. Removing them makes the listviews fill up all the available space. Also, you set "pagemode=true" for the main <vgroup> of your window... you must not do this! AFAIR the window's elementary vgroup/hgroup must never be a pagemode group. You need to create another subgroup first.

Using this XML code makes the two listviews fill up all the available window space:

Code: Select all

<?xml   version="1.0"   encoding="iso-8859-1"?>
<application id="app"   base="HSMGAME" menustrip="menu">
   <menustrip id="menu">
      <menu   title="HollywoodSoccerManager">
         <item   id="mn_about"   notify="selected"   shortcut="?">About...</item>
         <item   id="mn_aboutmui" notify="selected">About MUI...</item>
         <item   id="mn_aboutmuiroyale" notify="selected">About MUI Royale...</item>
         <item/>
         <item   id="mn_quit" notify="selected" shortcut="Q">Quit</item>
      </menu>
      <menu   title="Settings">
         <item   id="mn_muisettings"   notify="selected"   shortcut="S">MUI...</item>
      </menu>
   </menustrip>
   <window   title="HSM-Game" id="win"   muiid="HSMW" height="640"   width="480"   notify="closerequest"   userightborderscroller="false" usebottomborderscroller="false">
      <vgroup   id="pgr" title="HSM-Menu"   frame="group"   background="groupback" samesize="true">
         <vgroup   id="ClubSelection" title="ClubSelection" frame="group" frametitle="ClubSelection"   background="groupback">
            <hgroup>
               <button   id="btshowclubdetails"      notify="pressed">\33A[13]ShowClubDetails</button>
               <button   id="btclearclubselection"   notify="pressed">\33A[19]ClearSelection</button>
               <button   id="btgotomain7"         notify="pressed">\33A[9]main</button>
            </hgroup>
            <hgroup>
               <vgroup   id="listofleagues" disabled="false"   frame="group"   frametitle="Leaguelist">
                  <listview   id="leaguelist"   autovisible="true" MultiSelect="None"   frame="InputList"   notify="active">
                     <column   title="ID"></column>
                     <column   title="Name"></column>
                     <column   title="Nation"></column>
                  </listview>
               </vgroup>
               <vgroup   id="listofclubs" disabled="false"   frame="group"   frametitle="Clublist">
                  <listview   id="clublist"   autovisible="true" MultiSelect="None"   frame="InputList"   notify="active">
                     <column   title="ID"></column>
                     <column   title="Name"></column>
                     <column   title="League"></column>
                     <column   title="Account"></column>
                     <column   title="Stadium"></column>
                  </listview>
               </vgroup>
            </hgroup>
         </vgroup>
      </vgroup>
   </window>
</application>
GMKai
Posts: 158
Joined: Mon Feb 15, 2010 10:58 am

Re: Listview visible entries

Post by GMKai »

thanks, another group nesting the already existing ones did the trick.

can i configure the title of a group to not show up at all?
Post Reply