Modal Dialogs in Linux Ubuntu

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

Re: Modal Dialogs in Linux Ubuntu

Post by airsoftsoftwair »

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: 303
Joined: Fri May 15, 2015 5:15 pm
Location: Waterville, Minnesota USA

Re: Modal Dialogs in Linux Ubuntu

Post by SamuraiCrow »

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
I'm on registered MorphOS using FlowStudio.

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

Re: Modal Dialogs in Linux Ubuntu

Post by airsoftsoftwair »

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

Post Reply