Search found 364 matches

by SamuraiCrow
Thu Jan 21, 2021 10:24 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

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'...
by SamuraiCrow
Tue Jan 19, 2021 1:11 am
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

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...
by SamuraiCrow
Sun Jan 17, 2021 4:00 am
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

Re: Advanced RapaGUI techniques

Screenshot time!

Image

If this works right, you should be able to click the image above and see the original 1024x768 screenshot!
by SamuraiCrow
Sun Jan 17, 2021 3:21 am
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

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...
by SamuraiCrow
Fri Jan 15, 2021 9:21 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

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...
by SamuraiCrow
Fri Jan 15, 2021 7:23 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

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...
by SamuraiCrow
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: 422

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().
by SamuraiCrow
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: 422

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...
by SamuraiCrow
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: 422

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".
by SamuraiCrow
Thu Jan 07, 2021 8:59 pm
Forum: RapaGUI
Topic: Advanced RapaGUI techniques
Replies: 13
Views: 919

Re: Advanced RapaGUI techniques

a few days ago, I added the rectangle and button classes to RapaEdit. It took surprisingly little effort. When I made the rectangle class, all I had to do was change a copy of the group class to be a single item of type rectangle. Rectangle class has no editable fields so most of the editing methods...