Search found 385 matches

by SamuraiCrow
Tue Dec 15, 2020 1:41 am
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

I'm really looking forward to what you have planned.
by SamuraiCrow
Sat Dec 12, 2020 10:47 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 20
Views: 1615

Re: Advanced RapaGUI techniques

For my second post, I'll illustrate how to keep the RapaGUI event handler small. In order to be routed to different handler subroutines, all IDs must have a prefix punctuated by an underscore at the end. The proper handler is selected from the "prefixes" table using the prefix as the key and the fun...
by SamuraiCrow
Sat Dec 12, 2020 10:13 pm
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

@REQUIRE "RapaGUI.hwp" Function p_ProcessGUI(message) Switch message.action Case "RapaGUI": If message.attribute="Pressed" Switch(message.id) FallThrough Case "call": Global ModalUserData=data moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?> <dialog id="req" title="Application"> <hgr...
by SamuraiCrow
Sat Dec 12, 2020 9:09 pm
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

/* ** Global Event Handler */ Function p_ProcessGUI(message) Switch message.action Case "RapaGUI": If message.attribute="Pressed" Switch(message.id) FallThrough Case "call": p_Editor() Break Case "ok": p_CopyBack() Case "cancel": p_EditorDone() ;<- Here's where it goes Default: Break EndSwitch EndI...
by SamuraiCrow
Sat Dec 12, 2020 8:59 pm
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

@REQUIRE "RapaGUI.hwp" Global data={} data["id$"]="app" data["name$"]=data.id$ data["encoding$"]="utf8" /* ** Editor ** ** Allows name of application to be changed */ Function p_Editor() Global ModalUserData=data moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?> <dialog id="req" title...
by SamuraiCrow
Sat Dec 12, 2020 6:23 am
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 20
Views: 1615

Advanced RapaGUI techniques

Hello all! I've been putting some work into a GUI builder with RapaGUI as the tool and target. The link is at https://github.com/SamuraiCrow/RapaEdit if you would like to monitor my progress. I've got about a week's worth of work put in so far. This thread is to make note of some of my techniques in...
by SamuraiCrow
Sat Dec 12, 2020 4:01 am
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

I think moai.UserData is garbage collecting at the wrong times. Since I replaced the tree-node UserData, the stability of my code has improved remarkably. The only place I'm still using moai.UserData is to pass a table between the functions that open dialog boxes and there's still an intermittent bu...
by SamuraiCrow
Fri Dec 11, 2020 7:16 pm
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

I found another way by using the UID value as a key in a global table.
by SamuraiCrow
Fri Dec 11, 2020 1:11 am
Forum: Announcements
Topic: Polybios 1.3 released
Replies: 4
Views: 638

Re: Polybios 1.3 released

I guess you were right. It was stale data in the browser cache. Sorry for the noise.
by SamuraiCrow
Fri Dec 11, 2020 1:03 am
Forum: RapaGUI
Topic: UserData in TreeView Nodes?
Replies: 10
Views: 819

Re: UserData in TreeView Nodes?

I tried but the syntax I used was:

Code: Select all

moai.Set(nodeLabel, "UserData", tableToStore)
Was that wrong?