Modal Dialogs in Linux Ubuntu

Discuss GUI programming with the RapaGUI plugin here
User avatar
airsoftsoftwair
Posts: 2558
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Modal Dialogs in Linux Ubuntu

Post by airsoftsoftwair » Fri Jul 20, 2018 10:53 pm

Can you post some minimal sample code that I can try here or is it reproducable with an example script that comes with RapaGUI?

SamuraiCrow
Posts: 171
Joined: Fri May 15, 2015 5:15 pm
Location: Ft. Collins, Colorado USA

Re: Modal Dialogs in Linux Ubuntu

Post by SamuraiCrow » Mon Jul 23, 2018 7:23 pm

Try single clicking the "Edit me" item twice to edit it. There's an instant coredump on my Linux box.

Code: Select all

@VERSION 7,1
@REQUIRE "RapaGUI"

moai.CreateApp([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
	<window title="List" id="WINDOW">
		<vgroup>
			<listview id="lv" notify="StartEditing">
				<column title="List Title" editable="true">
					<item>Edit me</item>
				</column>
			</listview>
		</vgroup>
	</window>
</application>
]])

Function p_EventFunc(msg)
	Switch(msg.action)
	Case "RapaGUI":
		Switch(msg.Attribute)
		Case "ValueChanged":
			If (msg.id = "lv")
				moai.Request("Update",
					"Listview row " .. msg.row .. " column " .. msg.column ..
					"\nchanged to " .. msg.triggervalue , "OK", "Information")
			EndIf
		Case "AbortEditing":
			If (msg.id = "lv")
				moai.Request("Update",	"Listview change aborted", "OK", "Information")
			EndIf
		Case "StartEditing":
			If (msg.id = "lv")
				moai.Request("Warning", "Edit mode activated", "OK", "Warning")
			EndIf
		EndSwitch
	EndSwitch
EndFunction

InstallEventHandler({RapaGUI = p_EventFunc})

Repeat
	WaitEvent
Forever

User avatar
airsoftsoftwair
Posts: 2558
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany
Contact:

Re: Modal Dialogs in Linux Ubuntu

Post by airsoftsoftwair » Tue Jul 24, 2018 12:39 pm

Thanks for the test case, crashes here too. Will be fixed.

Post Reply