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 
Pages (11): « First < Previous 7 8 9 10 [11] Last »
[WIP] MurgaLua Reference Tool
Author Message
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #101
RE: [WIP] MurgaLua Reference Tool

Quote:
(very old post) I was thinking, perhaps you want to have a means of exporting the samples and comments to a indexed HTML page(s) for posting to the web. Just a thought.

The more I think about this idea, the more I like it. I think it's going in the todo pile.

It may not be a part of the demo interface itself, but maybe a separate Lua script that will convert the contents of the scripts directory to simple html. I'm still not liking the idea of frames, so it would probably be CSS layout for browsers that support it, and similar to the typical Linux online HowTos for those that don't.

I suppose when I get better with using fl_read_image and saveAsPng I could possibly use those to dynamically create screenshots to include with the html

03-06-2008 03:47 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #102
RE: [WIP] MurgaLua Reference Tool

The external editor has been put back in. It requires the user to either edit the main script or set a variable on the commandline (murgaLua -e "ext_editor=[[something]]" widgets.lua) The added button will load the existing buffer into an external editor, via temp file, and when you close the editor the temp file will be reloaded into the buffer. It was very easy to incorporate it this way, rather than have the external editor be an alternative to the Fl_Text_Editor. I haven't got a clue how I'd do it that way, and don't really want to think about it.

Still want to do some more menu bar work, and maybe one or two small toys. Then I need to bring it back into Windows for a quick test (was pretty thorough with it yesterday).
Beta 4 to come soon.

The more gets added to it, the more it's becoming a general reference tool rather than mainly FLTK widgets. I'm thinking a name change is imminent

This post was last modified: 03-30-2008 06:18 AM by mikshaw.

03-30-2008 06:14 AM
Find all posts by this user Quote this message in a reply
boscobearbank
Junior Member
**


Posts: 2
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Post: #103
RE: [WIP] MurgaLua Reference Tool

Hi mikshaw,

I'll be the first to admit I don't know what I'm doing (and I hereby so admit). Be that as it may, I have a question regarding the clock demo in beta3. I ran the demo with the "show demo" button and it worked fine. However, when I saved the file (along with a copy of the images directory) to my home directory and ran the program, I got the following error:

/usr/local/bin/murgaLua: clocks.lua:20: attempt to concatenate global 'images' (a nil value)
stack traceback:
clocks.lua:20: in main chunk
[C]: ?

so I inserted the line:

images = "images/"

above line 20 in the program and all was well. I guess I was just wondering if the individual demo programs are designed to be totally free-standing or if they deliberately use external global variables?

--
Bosco Bearbank

03-30-2008 07:33 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #104
RE: [WIP] MurgaLua Reference Tool

Most of them will work fine as-is, but those that use the images directory need the directory added to them (there are 7 or 8 of them, I think).

The old version of the demos package had all of the demos load as part of the main script. While this made some things more convenient, it caused porblems in other areas. The way it is now, any script that can run on its own can be dropped into the script directory without change. The only ones that need a helping hand are the ones that rely on external images.

In order to make the package as portable as possible, specifically so you can put it anywhere you want and not have to be *in* that directory when you run it, the images variable is dynamically set when the main script is run. When you run a demo, the code buffer is copied to a temp file (in order to use any changes you make) and that is run instead of the original script. Here's where the main problem came in...that temp file is no longer in the script directory, so it doesn't know where the images directory is. The main script passes the images variable to the temp demo. When you save the file and run it independently, the variable is not passed to it.

I *could* have saved the variable with every script, but that would be overkill since only a handful of the scripts actually use images.

I'm open to any suggestions for a better solution.

03-30-2008 08:35 AM
Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #105
RE: [WIP] MurgaLua Reference Tool

There seems to be a problem with uploads on the forum today, so I wasn't able to put beta4

Current changelog:

Quote:
2008-04-01:
* Dropped support for murgaLua below 0.6
* File list split into collapsible sections
* Returned the ability to set a global scheme
* Returned the external editor
* Made columns resizable
* Better keyboard control
* Code cleanup
* Name change from widgets demo to murgaLua demos
* Fixed "show demo" button to not collapse browser on click
* Fixed save button crash on main code (disabled the button)
* Fixed potato drop mouse click test for Windows
* Fixed xpm_file.xpm transparency in Windows
* Added examples:
button roll-over, FLU emulation
Flu_Choice_Group, FLU emulation
collapsible browser
LCD-style number display


I'll try uploading again later tonight.

April 7: still no luck.
Error message:

Quote:
The file upload failed. Please choose a valid file and try again. Error details: There was a problem moving the uploaded file to its destination.

This post was last modified: 04-08-2008 04:42 AM by mikshaw.

04-02-2008 07:40 AM
Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #106
RE: [WIP] MurgaLua Reference Tool

Weird problem ...

Permissions needed changing after the OS upgrade to the server (how weird!).

Anyway, here the the current you sent me ... I'll delete my post when you update.

Cheers
JohnM



Attached File(s)
.gz File  murgaLua_demos-beta4.tar.gz (Size: 179.66 KB / Downloads: 34)
04-09-2008 08:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #107
RE: [WIP] MurgaLua Reference Tool

I can't believe I let that sit for three years! The original post is now updated with a link to beta 4 =o)

I'm still playing with this here and there for a few minutes at a time, but I haven't done enough with it to justify packing up a new release.

11-10-2011 06:24 AM
Find all posts by this user Quote this message in a reply
roydobbins
Junior Member
**


Posts: 7
Group: Registered
Joined: Nov 2010
Status: Offline
Reputation: 0
Post: #108
RE: [WIP] MurgaLua Reference Tool

mikshaw Wrote:
I can't believe I let that sit for three years! The original post is now updated with a link to beta 4 =o)

I'm still playing with this here and there for a few minutes at a time, but I haven't done enough with it to justify packing up a new release.


Mik:

please keep at it, i think MurgaLua, FLTK are very promising and my interest is in that they are antidotes to the bloatware

we had a conversation a while back on this forum, revolving around a screen issue i was seeing in a database application

what is vital here are your demos!!!

so i think it important that the reference guide eventually should cover some of the more tricky and subtle issues, and also serve as a template for how to implement stuff

--roy

12-10-2011 11:52 AM
Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #109
RE: [WIP] MurgaLua Reference Tool

mikshaw, what OS are you using now ?

I PROMISE 0.7.5 for X-Mas :-)

12-10-2011 11:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #110
RE: [WIP] MurgaLua Reference Tool

Debian Wheezy. Can't recall having any issues since switching from DSL/TinyCore, although I might have needed to install a c library other than the default, but that's not an uncommon thing.

Still have access to Windows 7 and maybe Windows XP for some occasional testing.

12-11-2011 03:34 AM
Find all posts by this user Quote this message in a reply
Pages (11): « First < Previous 7 8 9 10 [11] Last »
Post Reply  Post Thread 

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

Forum Jump: