TitleClick is killing sorting

Discuss GUI programming with the RapaGUI plugin here
Post Reply
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

TitleClick is killing sorting

Post 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
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: TitleClick is killing sorting

Post by airsoftsoftwair »

What platform? It works with RapaGUI 2.0 on Windows so I'd guess it has been fixed already.
amyren
Posts: 352
Joined: Thu May 02, 2019 11:53 am

Re: TitleClick is killing sorting

Post 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.
Post Reply