Page 1 of 1

TitleClick is killing sorting

Posted: Mon May 17, 2021 10:36 am
by amyren
This have been mentioned in other threads, but I feared it might be overlooked behing a misleading title

Anyway, here is a small test script for the issue.
With this script the sorting of the first column does not work.
But comment or remove the line MOAI.Notify("lv", "TitleClick", True) and the sorting will work.

Code: Select all

@REQUIRE "RapaGUI"
moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application>
   <window title="Test program">
	<vgroup>
				<listview id="lv" notify="active">
					<column title="Last name" editable="true" sortable="true"/>
					<column title="First name" editable="true"/>
				</listview>
	</vgroup>
	</window>
</application>
]])

moai.DoMethod("lv", "insert", "bottom", "Peterson", "Bob")
moai.DoMethod("lv", "insert", "bottom", "Johnson", "Yusef")

moai.Notify("lv", "TitleClick", True)

Repeat
	WaitEvent
Forever

Re: TitleClick is killing sorting

Posted: Sat May 22, 2021 6:32 pm
by airsoftsoftwair
What platform? It works with RapaGUI 2.0 on Windows so I'd guess it has been fixed already.

Re: TitleClick is killing sorting

Posted: Sat May 22, 2021 9:28 pm
by amyren
This is on windows, RapaGUI 1.2
Good to hear it works on 2.0. Hope to be able to test that soon.