Search found 385 matches
- Mon Jan 25, 2021 6:38 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Yesterday I cleaned up the GUI significantly: https://github.com/SamuraiCrow/HollywoodDocumentation/blob/main/RapaNew.png?raw=true Now double clicking the listview adds the item to the current node automatically. The remove button removes windows and dialogs just like it removes gadgets. The add, ed...
- Thu Jan 21, 2021 10:24 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Major update! I've just got the preview window/dialog to work. In preview mode, the window XML generates a dialog box with the same specifications as the window and both windows and dialogs add a button at the end that allows the preview to close independently of the close gadget in case there isn'...
- Tue Jan 19, 2021 1:11 am
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Thanks Andreas! :D Today I just discovered that saving a file and loading it back and saving it again caused the file to grow! I've now written a utility that dumps the fields of the file to a window. I discovered that Hollywood was saving my methods as well as my data! Before: https://raw.githubuse...
- Sun Jan 17, 2021 4:00 am
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
- Sun Jan 17, 2021 3:21 am
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Today I implemented loading and saving of documents. This was greatly simplified by the WriteTable() command but I still had to overcome some obstacles. One such obstacle was that there were a great many self-referencing fields in the table containing the document. Since CopyTable() can only do shal...
- Fri Jan 15, 2021 9:21 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Update! I finally found the bug! I had changed self.contents to RawGet(self, contents) instead of RawGet(self, "contents") in its place. When using a string key with RawGet, the key string must be in quotes! That's a subtle bug that I looked past without even seeing the problem. The Groups class sh...
- Fri Jan 15, 2021 7:23 pm
- Forum: RapaGUI
- Topic: Advanced RapaGUI techniques
- Replies: 20
- Views: 1605
Re: Advanced RapaGUI techniques
Debugging time! As I was adding the generateXML$() functionality to the program, I discovered that I'd forgotten in multiple places to put a colon in front of the generateXML$() method calls instead of a dot. Also, I found that some of the recursion wasn't working right at the window level. Ultimat...
- Fri Jan 15, 2021 6:37 pm
- Forum: Newbie questions
- Topic: How to iterate correctly over a given table and peek specific values
- Replies: 8
- Views: 691
Re: How to iterate correctly over a given table and peek specific values
Just to narrow it down, try switching from HaveItem() to RawGet(). If it's truly not there, RawGet() will return Nil. It may just be a weird bug in HaveItem().
- Wed Jan 13, 2021 1:12 am
- Forum: Newbie questions
- Topic: How to iterate correctly over a given table and peek specific values
- Replies: 8
- Views: 691
Re: How to iterate correctly over a given table and peek specific values
On second thought, I think I know what you're trying to do. OpenFile(1, "t:table.bin", #MODE_READ) newtable = ReadTable(1) CloseFile(1) Function p_iteratelist(table) If(HaveItem(table,"stations")) DebugPrint("Stations: "..counter) For i,v In IPairs(table.stations) If(i > 0) DebugPrint("i: "..i) ForE...
- Tue Jan 12, 2021 5:51 pm
- Forum: Newbie questions
- Topic: How to iterate correctly over a given table and peek specific values
- Replies: 8
- Views: 691
Re: How to iterate correctly over a given table and peek specific values
If you need all keys for a table regardless of order, try switching from IPairs to Pairs. I don't know if this solves your problem because I really don't see the problem nor any mention in your example of "columns".