News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
[WIP] MurgaLua Reference Tool
Author Message
Senior Member

Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #1
RE: [WIP] MurgaLua Reference Tool - a little help?

No, but I imagine there could be without too much trouble. I think I should probably rethink the way the preview is done...maybe even use a new instance of murgaLua for it.

Here's the way it currently works:
Each widget file is a semi-complete script, without the window creation and fltk:Fl:run().
When the widget is called, the previous widget (if it exists) is removed.
A new child window is created and the widget file is added within that window with dofile().
This process causes everything in the widget file to become a part of the main window.
The preview is done by creating a new script in ram with the contents of the text window, which is run with assert(loadstring(tempscript))(). This might be the problem, since I don't fully understand assert or loadstring. It might be better to simply create a new external window for the preview, which I think could be more easily controlled.

So far I haven't done anything with it since the last post, so I'm just speculating.

07-27-2007 08:54 AM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
[WIP] MurgaLua Reference Tool - mikshaw - 07-10-2007, 05:00 PM
RE: [WIP] MurgaLua Reference Tool - a little help? - mikshaw - 07-27-2007 08:54 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: