Listview weight

Discuss GUI programming with the MUI Royale plugin here
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: Listview weight

Post by GMKai »

when shortening my source, I get it to work:
Here is a working gui:

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="HSMGAME">
		<window title="HSM-Game" id="win" muiid="HSMW" notify="closerequest" userightborderscroller="false" usebottomborderscroller="false">
		<vgroup frame="group" background="groupback">
			<vgroup id="pgr" title="HSM-Menu" pagemode="true" frame="group" background="groupback">
				<vgroup id="InGameMenu" pagemode="true" samesize="true" frame="group" background="groupback">
					<vgroup title="overview" frame="group" background="groupback">
						<hgroup frame="group" background="groupback" samesize="true">
							<button id="btstadium" notify="pressed" frame="button">\33A[31]stadium</button>
							<button id="btcommercial" notify="pressed" frame="button">\33A[37]commercial</button>
							<button id="btfinance" notify="pressed" frame="button">\33A[8]finance</button>
							<button id="btteam" notify="pressed" frame="button">\33A[7]team</button>
							<button id="bttransfer" notify="pressed" frame="button">\33A[28]transfer</button>
							<button id="btcoach" notify="pressed" frame="button">\33A[26]coach</button>
							<button id="btdisk" notify="pressed" frame="button">\33A[25]disk</button>
						</hgroup>
						<hgroup frame="group" background="groupback" samesize="true">
							<button id="btstats" notify="pressed" frame="button">\33A[22]stats</button>
							<button id="btkickoff" notify="pressed" frame="button">\33A[32]kickoff</button>
						</hgroup>
						<hgroup id="hgrmaininfo" frame="group" background="groupback">
							<text id="txmaininfo"/>
						</hgroup>
						<vgroup id="grmainmatchforecast" samesize="true" frame="group" background="groupback">
                            <listview id="mainmatchforecast" MultiSelect="None" input="false" frame="ReadList">
                                    <column id="lvcmainfmatchforecastweek" title="Week"/>
                                    <column id="lvcmainfmatchforecasthome" title="Home"/>
                                    <column id="lvcmainfmatchforecastaway" title="Away"/>
                            </listview>
						<!--<rectangle/>-->
						</vgroup>
					</vgroup>
				</vgroup>
		</vgroup>
		</vgroup>
	</window>
</application>
Here to check diff to the non-working:

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" notify="closerequest" userightborderscroller="false" usebottomborderscroller="false">
		<vgroup frame="group" background="groupback">
			<vgroup id="pgr" title="HSM-Menu" pagemode="true" frame="group" background="groupback">
				<vgroup id="MainMenu" title="Main	Menu" frame="group" frametitle="MainMenu" background="groupback" samesize="true">
					<hgroup title="loadgame" frame="group" frametitle="LoadGame" background="groupback">
						<button id="btloadgame" notify="pressed" frame="button">\33A[2]_LoadGame</button>
					</hgroup>
					<hgroup title="newgame" frame="group" frametitle="NewGame" background="groupback">
						<button id="btsetdataset" notify="pressed" frame="button">\33A[6]_Dataset</button>
						<button id="btsetmanagername" notify="pressed" frame="button">\33A[5]_Managername</button>
						<button id="btsetclub" notify="pressed" frame="button">\33A[7]_Club</button>
						<button id="btsetlanguage" notify="pressed" frame="button">\33A[18]_Language</button>
					</hgroup>
					<hgroup title="startgame" frame="group" frametitle="Start" background="groupback">
						<button id="btstartgame" disabled="true" notify="pressed" frame="button">\33A[3]_StartGame</button>
						<button id="btclearselection" notify="pressed" frame="button">\33A[19]_ClearSelection</button>
					</hgroup>
					<rectangle/>
				</vgroup>
				<vgroup id="InGameMenu" pagemode="true" samesize="true" frame="group" background="groupback">
					<vgroup title="overview" frame="group" background="groupback">
						<hgroup frame="group" background="groupback" samesize="true">
							<button id="btstadium" notify="pressed" frame="button">\33A[31]stadium</button>
							<button id="btcommercial" notify="pressed" frame="button">\33A[37]commercial</button>
							<button id="btfinance" notify="pressed" frame="button">\33A[8]finance</button>
							<button id="btteam" notify="pressed" frame="button">\33A[7]team</button>
							<button id="bttransfer" notify="pressed" frame="button">\33A[28]transfer</button>
							<button id="btcoach" notify="pressed" frame="button">\33A[26]coach</button>
							<button id="btdisk" notify="pressed" frame="button">\33A[25]disk</button>
						</hgroup>
						<hgroup frame="group" background="groupback" samesize="true">
							<button id="btstats" notify="pressed" frame="button">\33A[22]stats</button>
							<button id="btkickoff" notify="pressed" frame="button">\33A[32]kickoff</button>
						</hgroup>
						<hgroup id="hgrmaininfo" frame="group" background="groupback">
							<text id="txmaininfo"/>
						</hgroup>
						<vgroup id="grmainmatchforecast" samesize="true" frame="group" background="groupback">
                            <listview id="mainmatchforecast" MultiSelect="None" input="false" frame="ReadList">
                                    <column id="lvcmainfmatchforecastweek" title="Week"/>
                                    <column id="lvcmainfmatchforecasthome" title="Home"/>
                                    <column id="lvcmainfmatchforecastaway" title="Away"/>
                            </listview>
						<!--<rectangle/>-->
						</vgroup>
					</vgroup>
					<vgroup frametitle="Stadium" frame="group" background="groupback">
						<text id="txstadiumname"/>
						<colgroup columns="6" frame="group" background="groupback" cyclechain="1">
							<text>Block</text>
							<text>Size</text>
							<text>Condition</text>
							<text>State</text>
							<text/>
							<text/>
							<text>Pitch</text>
							<text/>
							<text id="txstadiumpitchcondition"/>
							<text/>
							<button id="btstadiumpitch" notify="pressed" frame="button">\33A[21]Repair</button>
							<text/>
							<text>BlockA</text>
							<text id="txstadiumBlockASize"/>
							<text id="txstadiumBlockACondition"/>
							<text id="txstadiumBlockAState"/>
							<button id="btstadiumrepairA" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendA" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockB</text>
							<text id="txstadiumBlockBSize"/>
							<text id="txstadiumBlockBCondition"/>
							<text id="txstadiumBlockBState"/>
							<button id="btstadiumrepairB" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendB" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockC</text>
							<text id="txstadiumBlockCSize"/>
							<text id="txstadiumBlockCCondition"/>
							<text id="txstadiumBlockCState"/>
							<button id="btstadiumrepairC" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendC" notify="pressed" frame="button">\33A[21]Extend</button>
							<text>BlockD</text>
							<text id="txstadiumBlockDSize"/>
							<text id="txstadiumBlockDCondition"/>
							<text id="txstadiumBlockDState"/>
							<button id="btstadiumrepairD" notify="pressed" frame="button">\33A[21]Repair</button>
							<button id="btstadiumextendD" notify="pressed" frame="button">\33A[21]Extend</button>
						</colgroup>
						<vgroup id="stadiumconstruction" frametitle="construction" frame="group" background="groupback" cyclechain="1">
							<hgroup>
								<text id="txstadiumconstruction"/>
								<text id="txstadiumconstructionblock"/>
							</hgroup>
							<vgroup id="grstadiumextend">
								<text id="txstadiumnewsize">Size</text>
								<String id="ststadiumnewsize" maxlen="6" accept="0123456789" cyclechain="1"/>
							</vgroup>
							<vgroup id="grstadiumrepair">
								<text id="txstadiumnewcond">Condition</text>
								<String id="ststadiumnewcond" maxlen="4" accept="0123456789" cyclechain="1"/>
							</vgroup>
							<text>Cost</text>
							<text id="txstadiumconstructioncost"/>
							<button id="btstadiumcalcoffer" notify="pressed" frame="button">\33A[36]Calculate Offer</button>
							<button id="btstadiumacceptoffer" notify="pressed" frame="button">\33A[23]Accept Offer</button>
						</vgroup>
						<vgroup frametitle="pricing" frame="group" background="groupback" cyclechain="1">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Price</text>
								<text/>
								<String id="ststadiumprice" maxlen="3" accept="0123456789" cyclechain="1"/>
								<button id="btstadiumprice" notify="pressed" frame="button">\33A[8]New Price</button>
							</colgroup>
						</vgroup>
						<button id="btgotomain1" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Commercial" frame="group" background="groupback">
						<hgroup>
							<vgroup>
								<button id="btcommercialshirt" notify="pressed" frame="button">\33A[20]Shirt</button>
								<colgroup columns="2" frame="group" background="groupback">
									<text>Name</text>
									<text id="txcommercialshirtName"/>
									<text>Sum</text>
									<text id="txcommercialshirtSum"/>
									<text>Runtime</text>
									<text id="txcommercialshirtRuntime"/>
								</colgroup>
							</vgroup>
							<vgroup>
								<button id="btcommercialtv" notify="pressed" frame="button">\33A[34]TV</button>
								<colgroup columns="2" frame="group" background="groupback">
									<text>Name</text>
									<text id="txcommercialtvName"/>
									<text>Sum</text>
									<text id="txcommercialtvSum"/>
									<text>Runtime</text>
									<text id="txcommercialtvRuntime"/>
								</colgroup>
							</vgroup>
							<vgroup>
								<button id="btcommercialribbon" notify="pressed" frame="button">\33A[37]Ribbon</button>
								<colgroup columns="2" frame="group" background="groupback">
									<text>Name</text>
									<text id="txcommercialribbonName"/>
									<text>Sum</text>
									<text id="txcommercialribbonSum"/>
									<text>Runtime</text>
									<text id="txcommercialribbonRuntime"/>
								</colgroup>
							</vgroup>
						</hgroup>
						<vgroup id="commercialoffer" frame="group" background="groupback" frametitle="New Commercial Partner">
							<listview id="commercialofferlist" MultiSelect="None" frame="InputList" notify="active;titleclick" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Name"/>
								<column title="Sum"/>
								<column title="Runtime"/>
							</listview>
							<button id="btcommercialaccept" notify="pressed" frame="button">\33A[23]Accept Partner</button>
						</vgroup>
						<button id="btgotomain2" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Finance" frame="group" background="groupback" samesize="false">
						<colgroup columns="2" vertweight="100" frame="group" background="groupback" cyclechain="1">
							<text>Overview</text>
							<text id="txfinoverview"/>
							<text>General Income</text>
							<text id="txfinincome"/>
							<text>Commercial</text>
							<text id="txfincommercial"/>
							<text/>
							<text/>
							<text>General Expenses</text>
							<text id="txfinexpenses"/>
							<text>Player</text>
							<text id="txfinplayerexpenses"/>
							<text>Other</text>
							<text id="txfinother"/>
							<text/>
							<text/>
							<text>Current Total</text>
							<text id="txfintotal"/>
						</colgroup>
						<vgroup id="financecreditoverview" title="CreditOverview" frame="group" frametitle="CreditOverview" background="groupback" vertweight="300">
							<listview id="financecreditlist" MultiSelect="None" input="true" frame="InputList" notify="active" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Sum"/>
								<column title="Rate"/>
								<column title="Interest rate"/>
								<column title="Runtime"/>
							</listview>
							<hgroup frame="group" background="groupback">
								<button id="btfinancecreditpayback" disabled="true" notify="pressed" frame="button">\33A[8]Refund</button>
								<button id="btfinancecreditprolongate" disabled="true" notify="pressed" frame="button">\33A[8]Prolong</button>
								<rectangle/>
							</hgroup>
						</vgroup>
						<vgroup id="financecreditoffer" title="Credit" frame="group" background="groupback" frametitle="New Credit">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Creditsum</text>
								<String id="stfinancecreditsum" maxlen="8" accept="0123456789" cyclechain="1"/>
								<text>Creditruntime</text>
								<cycle id="cycreditruntime" cyclechain="1">
									<item>12</item>
									<item>24</item>
									<item>36</item>
									<item>48</item>
								</cycle>
							</colgroup>
							<button id="btfinancecredit" notify="pressed" frame="button">\33A[11]Offer Credit</button>
						</vgroup>
						<button id="btgotomain3" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Team" frame="group" background="groupback" samesize="false">
						<vgroup frame="group" background="groupback" samesize="true">
							<button id="btteamcontract" notify="pressed" frame="button">\33A[33]Contract</button>
							<button id="btteamlineup" notify="pressed" frame="button">\33A[7]Lineup</button>
							<button id="btteamtraining" notify="pressed" frame="button">\33A[35]Training</button>
						</vgroup>
						<vgroup frame="group" background="groupback">
							<vgroup id="pgrteam" pagemode="true" frame="group" background="groupback">
								<vgroup id="grteamcontract" frametitle="contract" frame="group" background="groupback">
									<listview id="teamcontractlist" input="true" frame="InputList" sortfunc="p_listviewCompareFunc" notify="active;titleclick;sortfunc" cyclechain="1">
										<column title="ID" hidden="true"/>
										<column title="Name"/>
										<column title="Stamina"/>
										<column title="Technic"/>
										<column title="Runtime"/>
										<column title="Wage"/>
									</listview>
									<hgroup frame="group" background="groupback">
										<cycle id="cyplayernewruntime" cyclechain="1">
											<item>12</item>
											<item>24</item>
											<item>36</item>
											<item>48</item>
										</cycle>
										<button id="btteamcontractplayeroffer" notify="pressed" frame="button">\33A[23]Extend</button>
										<button id="btteamcontractplayerfire" notify="pressed" frame="button">\33A[19]Fire</button>
										<button id="btteamcontractplayersell" notify="pressed" frame="button">\33A[8]Sell</button>
										<button id="btteamcontractplayerlend" notify="pressed" frame="button">\33A[8]Lend</button>
									</hgroup>
								</vgroup>
								<vgroup id="grteamlineup" frametitle="lineup" frame="group" background="groupback">
									<hgroup id="grteamformation" frame="group" background="groupback">
										<vgroup frametitle="formation" frame="group" background="groupback">
											<cycle id="cyteamlineupformation" cyclechain="1">
												<item>4-4-2</item>
												<item>3-5-2</item>
												<item>4-3-3</item>
												<item>5-3-2</item>
											</cycle>
											<button id="btteamformationset" notify="pressed" frame="button">\33A[27]Set</button>
											<rectangle/>
										</vgroup>
										<colgroup id="grteam442" hide="true" columns="5" frame="group" background="groupback">
											<text/>
											<text>9</text>
											<text/>
											<text>11</text>
											<text/>
											<text>7</text>
											<text>10</text>
											<text>6</text>
											<text/>
											<text>8</text>
											<text>2</text>
											<text>4</text>
											<text>5</text>
											<text/>
											<text>3</text>
										</colgroup>
										<colgroup id="grteam352" hide="true" columns="5" frame="group" background="groupback">
											<text/>
											<text>9</text>
											<text/>
											<text>11</text>
											<text/>
											<text>7</text>
											<text>6</text>
											<text>10</text>
											<text>3</text>
											<text>8</text>
											<text>2</text>
											<text/>
											<text>5</text>
											<text/>
											<text>4</text>
										</colgroup>
										<colgroup id="grteam433" hide="true" columns="5" frame="group" background="groupback">
											<text/>
											<text>9</text>
											<text>10</text>
											<text>11</text>
											<text/>
											<text/>
											<text>7</text>
											<text>6</text>
											<text>8</text>
											<text/>
											<text>2</text>
											<text>4</text>
											<text>5</text>
											<text/>
											<text>3</text>
										</colgroup>
										<colgroup id="grteam532" hide="true" columns="5" frame="group" background="groupback">
											<text/>
											<text>9</text>
											<text/>
											<text>11</text>
											<text/>
											<text/>
											<text>7</text>
											<text>10</text>
											<text>8</text>
											<text/>
											<text>2</text>
											<text>4</text>
											<text>5</text>
											<text>6</text>
											<text>3</text>
										</colgroup>
									</hgroup>
									<scrollgroup id="scrollteamlineup" usewinborder="false" >
										<virtgroup id="vgrteamlineup" horiz="false" frame="virtual">
											<vgroup id="grplayers" frametitle="players" frame="group" background="groupback" cyclechain="1">
												<hgroup>
													<text id="grplayerst1">1</text>
													<cycle id="cyteamlineup1" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst2">2</text>
													<cycle id="cyteamlineup2" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst3">3</text>
													<cycle id="cyteamlineup3" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst4">4</text>
													<cycle id="cyteamlineup4" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst5">5</text>
													<cycle id="cyteamlineup5" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst6">6</text>
													<cycle id="cyteamlineup6" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst7">7</text>
													<cycle id="cyteamlineup7" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst8">8</text>
													<cycle id="cyteamlineup8" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst9">9</text>
													<cycle id="cyteamlineup9" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst10">10</text>
													<cycle id="cyteamlineup10" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst11">11</text>
													<cycle id="cyteamlineup11" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst12">12</text>
													<cycle id="cyteamlineup12" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst13">13</text>
													<cycle id="cyteamlineup13" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst14">14</text>
													<cycle id="cyteamlineup14" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst15">15</text>
													<cycle id="cyteamlineup15" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<hgroup>
													<text id="grplayerst16">16</text>
													<cycle id="cyteamlineup16" cyclechain="1">
														<item>PlayerName</item>
													</cycle>
												</hgroup>
												<rectangle/>
												<vgroup>
													<text>Strength:</text>
													<text id="txteamselectedplayerstrength"/>
													<button id="btteamselectedplayerset" notify="pressed" frame="button">\33A[27]Set Players</button>
													<rectangle/>
												</vgroup>
											</vgroup>
										</virtgroup>
									</scrollgroup>
								</vgroup>
								<vgroup id="grteamtraining" frametitle="training" frame="group" background="groupback">
									<text>Intensity</text>
									<slider id="sltrainingintense" min="0" max="100" background="SliderBack" cyclechain="1"/>
									<colgroup columns="2" frame="group" background="groupback">
										<text>Points</text>
										<text id="txteamtrainingpoints"/>
										<text>Condition</text>
										<slider id="slteamtrainingcondition" min="0" max="100" background="SliderBack" cyclechain="1"/>
										<text>Technic</text>
										<slider id="slteamtrainingtechnic" min="0" max="100" background="SliderBack" cyclechain="1"/>
										<text>Special</text>
										<cycle id="cyteamtrainingspecial" cyclechain="1">
											<item>assist</item>
											<item>dribbling</item>
											<item>scoring</item>
											<item>speed</item>
											<item>passing</item>
											<item>shoot</item>
											<item>dueling</item>
											<item>heading</item>
										</cycle>
									</colgroup>
									<button id="btteamtrainingset" notify="pressed" frame="button" cyclechain="1">\33A[27]Set</button>
								    <rectangle/>
								</vgroup>
							</vgroup>
							<button id="btgotomain4" notify="pressed" frame="button">\33A[9]main</button>
						</vgroup>						
					</vgroup>
					<vgroup frametitle="Transfer" frame="group" background="groupback" samesize="false">
						<button id="bttransferfreeagent" notify="pressed" frame="button">\33A[15]FreeAgent</button>
						<button id="bttransferbuy" notify="pressed" frame="button">\33A[16]Buy</button>
						<button id="bttransferoffer" notify="pressed" frame="button">\33A[17]Offer</button>
						<button id="bttransferlend" notify="pressed" frame="button">\33A[14]Lend</button>
						<vgroup id="vgrtransfer" pagemode="true" frame="group" background="groupback" vertweight="300">
							<vgroup id="grtransferFreeAgent" frame="group" background="groupback" frametitle="FreeAgent">
								<listview id="transferfreeagentlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<button id="bttransferfreeagentSign" notify="pressed" frame="button">\33A[23]Sign</button>
							</vgroup>
							<vgroup id="grtransferBuy" frame="group" background="groupback" frametitle="Buy">
								<listview id="transferbuylist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" vertweight="300" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<colgroup columns="2" frame="group" background="groupback" frametitle="Offering">
									<text>Sum</text>
									<String id="sttransferoffersum" accept="0123456789" cyclechain="1"/>
									<text>Wage</text>
									<String id="sttransferofferwage" accept="0123456789" cyclechain="1"/>
									<text>Runtime</text>
									<cycle id="cytransferofferruntime" cyclechain="1">
										<item>12</item>
										<item>24</item>
										<item>36</item>
										<item>48</item>
									</cycle>
									<text/>
                                    <button id="bttransferbuySign" notify="pressed" frame="button">\33A[23]Place order</button>
								</colgroup>
								<vgroup id="grtransferBuyPending" frame="group" background="groupback" frametitle="Pending Orders">
									<listview id="transferbuylistpending" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
										<column title="ID" hidden="true"/>
										<column title="Position"/>
										<column title="Name"/>
										<column title="Sum"/>
										<column title="Wage"/>
									</listview>
									<colgroup columns="2" frame="group" background="groupback">
										<button id="bttransferbuySignRecall" notify="pressed" frame="button">\33A[19]Recall order</button>
										<text>Sum</text>
										<text id="txtransferbuysum" cyclechain="1"/>
										<text>Wage</text>
										<text id="txtransferbuywage" cyclechain="1"/>
										<text>Total available</text>
										<text id="txtransferbuytotal" cyclechain="1"/>
										<text/>
									</colgroup>
								</vgroup>
							</vgroup>
							<vgroup id="grtransferOffer" frame="group" background="groupback" frametitle="Offer">
								<listview id="transferofferlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="on Transfer"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<hgroup frame="group" background="groupback">
									<button id="bttransferOfferPlayer" notify="pressed" frame="button">\33A[8]Offer</button>
									<button id="bttransferOfferPlayerView" notify="pressed" frame="button">\33A[13]View offer</button>
									<button id="bttransferOfferPlayerOff" notify="pressed" frame="button">\33A[19]Put Off market</button>
									<rectangle/>
								</hgroup>
								<vgroup id="transfercluboffer" frame="group" background="groupback">
									<listview id="transferclubofferlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
										<column title="playerID" hidden="true"/>
										<column title="ClubID" hidden="true"/>
										<column title="Club"/>
										<column title="Sum"/>
										<column title="Wage"/>
										<column title="Runtime" hidden="true"/>
									</listview>
									<button id="bttransferclubofferacceptoffer" notify="pressed" frame="button">\33A[23]Accept Offer</button>
									<button id="bttransfercluboffermore" notify="pressed" frame="button">\33A[8]Ask for More</button>
									<button id="bttransferclubofferrejectoffer" notify="pressed" frame="button">\33A[19]Reject Offer</button>
									<rectangle/>
								</vgroup>
							</vgroup>
							<vgroup id="grtransferLend" frame="group" background="groupback" frametitle="Lend">
								<listview id="transferlendlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="on Transfer"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<hgroup frame="group" background="groupback">
									<button id="bttransferLendPlayer" notify="pressed" frame="button">\33A[8]Offer Lend</button>
									<button id="bttransferLendPlayerOff" notify="pressed" frame="button">\33A[19]Put Off market</button>
								</hgroup>
								<listview id="transferlendlistOthers" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
									<column title="ID" hidden="true"/>
									<column title="Position"/>
									<column title="Name"/>
									<column title="Age"/>
									<column title="Wage"/>
									<column title="Stamina"/>
									<column title="Technic"/>
								</listview>
								<button id="bttransferLendPlayerOthers" notify="pressed" frame="button">\33A[23]Sign Lend</button>
							</vgroup>
						</vgroup>
						<vgroup frame="group" background="groupback">
							<button id="btgotomain5" notify="pressed" frame="button">\33A[9]main</button>
						</vgroup>
					</vgroup>
					<vgroup frametitle="Disk" frame="group" background="groupback" samesize="false">
						<button id="btsave" notify="pressed" frame="button">\33A[2]Save</button>
						<button id="btload" notify="pressed" frame="button">\33A[6]Load</button>
						<button id="btend" notify="pressed" frame="button">\33A[29]End</button>
						<button id="btgotomain6" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Coach" frame="group" background="groupback" samesize="false">
						<vgroup id="currentcoach" disabled="false" frame="group">
							<colgroup columns="2" frame="group" background="groupback">
								<text>Name</text>
								<text id="txcoachname"/>
								<text>Type</text>
								<text id="txcoachtype"/>
								<text>Competence</text>
								<text id="txcoachcompetence"/>
								<text>Tactic</text>
								<text id="txcoachtactic"/>
								<text>Wage</text>
								<text id="txcoachwage"/>
							</colgroup>
						</vgroup>
						<button id="btcoachfire" notify="pressed" frame="button">\33A[19]fire</button>
						<vgroup id="freecoach" disabled="false" frame="group" background="groupback" frametitle="Coachlist">
								<cycle id="coachfilter" notify="active" cyclechain="1">
									<item>All</item>
									<item>Type</item>
									<item>Tactic</item>
								</cycle>
								<hgroup id="freecoachtype" disabled="false" frame="group" background="groupback">
									<checkmark id="btcoachcty1" selected="true" cyclechain="1"/>
									<text>Tactic</text>
									<checkmark id="btcoachcty2" selected="true" cyclechain="1"/>
									<text>Stamina</text>
									<checkmark id="btcoachcty3" selected="true" cyclechain="1"/>
									<text>Motivation</text>
									<checkmark id="btcoachcty4" selected="true" cyclechain="1"/>
									<text>General</text>
								</hgroup>
								<hgroup id="freecoachtactic" disabled="false" frame="group" background="groupback">
									<checkmark id="btcoachcta1" selected="true" cyclechain="1"/>
									<text>4-4-2</text>
									<checkmark id="btcoachcta2" selected="true" cyclechain="1"/>
									<text>3-5-2</text>
									<checkmark id="btcoachcta3" selected="true" cyclechain="1"/>
									<text>4-3-3</text>
									<checkmark id="btcoachcta4" selected="true" cyclechain="1"/>
									<text>5-3-2</text>
								</hgroup>
							<button id="btfiltercoach" notify="pressed" frame="button">\33A[30]Filter</button>
							<listview id="freecoachlist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
								<column title="ID" hidden="true"/>
								<column title="Name"/>
								<column title="Type"/>
								<column title="Competence"/>
								<column title="Tactic"/>
								<column title="Wage"/>
							</listview>
							<hgroup>
								<!--<button id="btcoachview" notify="pressed" frame="button">\33A[13]view</button>-->
								<button id="btcoachhire" notify="pressed" frame="button">\33A[23]hire</button>
							</hgroup>
						</vgroup>
						<button id="btgotomain8" notify="pressed" frame="button">\33A[9]main</button>
						<rectangle/>
					</vgroup>
					<vgroup frametitle="Stats" frame="group" background="groupback" samesize="false">
						<vgroup>
							<button id="btstatsaverage" notify="pressed" frame="button">\33A[22]stats</button>
							<button id="btstatsleague" notify="pressed" frame="button">\33A[22]league</button>
							<button id="btgotomain9" notify="pressed" frame="button">\33A[9]main</button>
						</vgroup>
						<vgroup id="pgrstats" pagemode="true" frame="group" background="groupback" samesize="false" vertweight="300">
							<vgroup title="grstatsaverage" id="grstatsaverage" frame="group" background="groupback" samesize="false">
								<cycle id="cystats" cyclechain="1">
									<item>Average</item>
									<item>Tops</item>
								</cycle>
								<button id="btstatsdisplay" notify="pressed" frame="button">\33A[13]display</button>
								<listview id="statslist" input="false" autovisible="true" MultiSelect="None" frame="ReadList" notify="active" cyclechain="1">
									<column title="Key"/>
									<column title="Value"/>
								</listview>
								<rectangle/>
							</vgroup>
							<vgroup title="grstatsleague" id="grstatsleague" frame="group" background="groupback" samesize="false">
								<hgroup id="statscygr" frame="group" background="groupback" samesize="true">
									<cycle id="cystatsnation" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<cycle id="cystatsleague" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<cycle id="cystatsmatchday" notify="active" cyclechain="1">
										<item>Default</item>
									</cycle>
									<button id="btstatsdisplaymatchday" notify="pressed" frame="button">\33A[13]display</button>
								</hgroup>
								<listview id="statsmatchday" input="false" MultiSelect="None" frame="ReadList">
									<column title="Home"/>
									<column title="Away"/>
									<column title="Result"/>
								</listview>
								<listview id="statsmatchdaytable" input="false" vertweight="200" MultiSelect="None" frame="ReadList">
									<column title="Club"/>
									<column title="Pts"/>
									<column title="GD"/>
								</listview>
							</vgroup>
						</vgroup>						
					</vgroup>
				</vgroup>
				<vgroup id="ClubSelection" frame="group" frametitle="ClubSelection" background="groupback" samesize="false">
					<hgroup>
						<button id="btshowclubdetails" notify="pressed" frame="button">\33A[13]ShowClubDetails</button>
						<button id="btclearclubselection" notify="pressed" frame="button">\33A[19]ClearSelection</button>
						<button id="btgotomain7" notify="pressed" frame="button">\33A[9]main</button>
					</hgroup>
					<text id="txclubname"/>
					<hgroup>
						<vgroup id="listofleagues" disabled="false" frame="group" frametitle="Leaguelist">
							<listview id="leaguelist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
								<column title="ID"/>
								<column title="Name"/>
								<column title="Nation"/>
							</listview>
						</vgroup>
						<vgroup id="listofclubs" disabled="false" frame="group" frametitle="Clublist">
							<listview id="clublist" autovisible="true" MultiSelect="None" input="true" frame="InputList" notify="active;doubleclick;titleclick" cyclechain="1">
								<column title="ID"/>
								<column title="Name"/>
								<column title="League"/>
								<column title="Account"/>
								<column title="Stadium"/>
							</listview>
						</vgroup>
					</hgroup>
				</vgroup>
				<vgroup id="PlayerSelection" frame="group" frametitle="PlayerSelection" background="groupback">
					<hgroup frame="group" background="groupback">
						<listview id="playerlistcleanall" autovisible="true" MultiSelect="Default" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
							<column title="ID" hidden="true"/>
							<column title="Position"/>
							<column title="Name"/>
							<column title="Age"/>
							<column title="Wage"/>
							<column title="Stamina"/>
							<column title="Technic"/>
						</listview>
						<listview id="playerlistcleanselected" autovisible="true" MultiSelect="Default" input="true" frame="InputList" notify="active;titleclick" cyclechain="1">
							<column title="ID" hidden="true"/>
							<column title="Position"/>
							<column title="Name"/>
							<column title="Age"/>
							<column title="Wage"/>
							<column title="Stamina"/>
							<column title="Technic"/>
						</listview>
					</hgroup>
					<hgroup frame="group" background="groupback">
						<button id="btplayerselectFire" notify="pressed" frame="button">\33A[19]Fire</button>
						<button id="btplayerselectKeep" notify="pressed" frame="button">\33A[24]Keep</button>
					</hgroup>
					<hgroup frame="group" background="groupback">
						<button id="btplayerselectSet" notify="pressed" frame="button">\33A[27]Confirm</button>
					</hgroup>
					<rectangle/>
				</vgroup>
				<vgroup id="ListviewSort" hide="true">
				    <listview id="lvsortmem">
				        <column title="listviewid"/>
				        <column title="columnid"/>
				        <column title="sortorder"/>
				    </listview>
				</vgroup>
			</vgroup>
		</vgroup>
	</window>
</application>
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview weight

Post by airsoftsoftwair »

So something is probably wrong in your GUI layout. I'm sorry but I can't do a proof-read of your complete XML. Start from your cut-down version and expand it step-by-step again to see what is causing the problem...
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: Listview weight

Post by GMKai »

just as you advised,
I tested smaller portions of the complete xml, but this seems to be still valid, so the error comes from the application.
The previously posted "full-xml" works, but functions for program-flow and filling listviews are different.

Can you give an advise where to look at, except, all places with "mui.set("?

Currently I tried to not set the window to sleep, but that didn't change anything, is there something else that comes to your mind?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview weight

Post by airsoftsoftwair »

Just make your program smaller, line by line, and run it again after each change until you see what causes the error. I can't be any more precise because I don't know your program and I don't have the time to proof-read through huge XML files.
GMKai
Posts: 140
Joined: Mon Feb 15, 2010 10:58 am

Re: Listview weight

Post by GMKai »

statusupdate:
Refined xml a little bit,
and surprise:
when calling the function to fill the listview 2* gui is fine.

Can you tell what happens within MUI, when a listview got filled?
What on earth is changed, when fillling a listview a second time?
User avatar
airsoftsoftwair
Posts: 5443
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Listview weight

Post by airsoftsoftwair »

No idea, but normally there should be no difference between filling a listview twice...
Post Reply