Page 1 of 1

limit height of first lister widget?

Posted: Sun Sep 28, 2025 8:02 pm
by gerograph
I have got this:

Code: Select all

<?xml version="1.0" encoding="iso-8859-1"?>
<application>
	<window title="ToDo">
		<vgroup>
			<listview id="lstv_debug" >
				<column ></column>
			</listview>
			<listview id="lstv_main">
				<column title="Status" checkbox="true"></column>
				<column title="Eintrag" editable="true" Width="100"></column>
				<column title="Datum" editable="true"></column>
			</listview>
			<textentry id="txt_input"> </textentry>
			<hgroup>
				<button id="btn_new">Hinz.</button>
				<button id="btn_del">Entf.</button>
			</hgroup>
		</vgroup>
	</window>
</application>
Which options do I have to limit the first lister to a quarter of my windows size? A code snippet would be wellcome, Thx

Re: limit height of first lister widget?

Posted: Sun Sep 28, 2025 10:17 pm
by plouf
you can set its size in pixels in height attribute in xml, if you know window size can set it

Code: Select all

xml$ = [[
<?xml version="1.0" encoding="iso-8859-1"?>
<application>
	<window title="ToDo">
		<vgroup>
			<listview id="lstv_debug" height="50" FixHeight="true" >
				<column ></column>
			</listview>
			<listview id="lstv_main">
				<column title="Status" checkbox="true"></column>
				<column title="Eintrag" editable="true" Width="100"></column>
				<column title="Datum" editable="true"></column>
			</listview>
			<textentry id="txt_input"> </textentry>
			<hgroup>
				<button id="btn_new">Hinz.</button>
				<button id="btn_del">Entf.</button>
			</hgroup>
		</vgroup>
	</window>
</application>
]]

@REQUIRE "RapaGUI"


moai.CreateApp(xml$)
Function p_EventFunc(msg)
	DebugPrint(msg)
EndFunction


InstallEventHandler({RapaGUI = p_EventFunc})

Repeat
	WaitEvent
Forever

Re: limit height of first lister widget?

Posted: Mon Sep 29, 2025 9:29 am
by gerograph
Thanx!