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.


Pages (27): « First < Previous 1 2 3 4 [5] 6 7 8 9 Next > Last »
Search Results
Post Author Forum Replies Views Posted []
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Soooo.....does it work? Anyone have any feedback on whether (and how) it can be made better, more efficient/portable? The dirname variable on my local copy has been changed to 'd' to avoid confusion...
mikshaw MurgaLua - General 24 45,626 07-17-2007, 03:32 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

As I said I don't have any idea if it works on Windows or Mac, but it *should* do the same on Linux and MacOS...grab everything from the beginning of a string to the final slash (i haven't thought to ...
mikshaw MurgaLua - General 24 45,626 07-17-2007, 11:34 PM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

The dirname function is not as reliable as I had hoped. It worked fine with my preliminary test, but when testing a few possible variations (such as running the script in the current directory) it fai...
mikshaw MurgaLua - General 24 45,626 07-18-2007, 03:22 PM
  Thread: sqLite database manager app ...
Post: RE: sqLite database manager app ...

I think it depends on how much formatting you need. MurgaLua provides the Fl_Browser classes, which can perform limited formatting such as colored/bold/italics/monospace text, but if you want much mor...
mikshaw MurgaLua - General 3 6,351 07-20-2007, 08:38 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

An update on the dynamic menus. You can use Fl_Menu_Bar:find_item(my_menu_item_string) to get a pointer to a specific menu item, which is much more pleasant than trying to determine the index of a pa...
mikshaw MurgaLua - General 24 45,626 07-20-2007, 09:01 AM
  Thread: Changing background image of main window?
Post: RE: Changing background image of main window?

It seems as though Fl_Window does not support the image method. You can fake it by adding my_background=fltk:Fl_Box(0,0,window_width,window_height) immediately after defining the window (so all other ...
mikshaw MurgaLua - General 2 6,291 07-21-2007, 02:24 AM
  Thread: Updated roadmap
Post: RE: Updated roadmap

[quote]Bring back and fix Fl_Text_Buffer, Fl_Text_Display, Fl_Text_Editor[/quote]That's great news [quote](also looking forward to mikshaw's app)[/quote]I hope you're not looking forward to it befo...
mikshaw MurgaLua - General 15 21,962 07-21-2007, 02:36 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

I got an opportunity to see murgaLua work on a Windows XP machine, and the function works there. Windows has some other dumb issues, though, like no preset "HOME" environment variable and no toler...
mikshaw MurgaLua - General 24 45,626 07-23-2007, 01:39 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

I don't know. I recall only seeing "TMP" and "TEMP" as user variables. Maybe the others are there but simply not available for modification by the user (XP Home). I'll get a chance to look at it again...
mikshaw MurgaLua - General 24 45,626 07-24-2007, 02:11 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Those two variables were simply the only two listed under system properties (why, i don't know). I used the "set" command to display the environment and found a few that will be helpful. I just hope ...
mikshaw MurgaLua - General 24 45,626 07-24-2007, 09:36 AM
  Thread: How to resize main window
Post: RE: How to resize main window

First I would set each widget to a variable name, which will give you much better control of your program: [code]window = fltk:Fl_Window(505, 145, "My first little app") button1=fltk:Fl_Button(5, ...
mikshaw MurgaLua - General 7 13,600 07-24-2007, 09:53 AM
  Thread: How to resize main window
Post: RE: How to resize main window

I'm pretty sure there is a better way to set it up, but I've never quite understood how resizable works. As far as I know, you can apply the method to a group rather than the main window, which will h...
mikshaw MurgaLua - General 7 13,600 07-24-2007, 01:40 PM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Thanks. That will definitely help.
mikshaw MurgaLua - General 24 45,626 07-24-2007, 11:38 PM
  Thread: How to resize main window
Post: RE: How to resize main window

I tried it with a box or a child window covering the whole main window, using that as the resizable widget, and both seem to have slightly better results. Now the buttons stretch uniformly. The bes...
mikshaw MurgaLua - General 7 13,600 07-25-2007, 01:07 AM
  Thread: Function to return the current directory
Post: RE: Function to return the current directory

Well then, I guess I won't be relying much on os.getenv() for cross-platform apps =op I was really hoping that this particular function would be a lifesaver when trying to do things like reading/writ...
mikshaw MurgaLua - General 24 45,626 07-25-2007, 01:20 AM
  Thread: Fl_Scroll example ...
Post: RE: Fl_Scroll example ...

Thank you! =o) I guess my problem came from assuming widgets defined within the group would automatically be added to it.
mikshaw MurgaLua - General 1 10,091 07-25-2007, 05:48 AM
  Thread: Browser Interaction with URLs
Post: RE: Browser Interaction with URLs

You might want to look at fl_open_uri() It apparently uses system default web browser, mail reader, or file manager, depending on the protocol. I have no system default applications (to my knowledg...
mikshaw MurgaLua - General 9 12,299 07-25-2007, 09:29 AM
  Thread: Browser Interaction with URLs
Post: RE: Browser Interaction with URLs

FLTK functions in murgaLua must be called with "fltk.<function>". Otherwise you'll get a nil value. This is what I did: [code]fltk.fl_open_uri("http://localhost")[/code] and got my local server loaded...
mikshaw MurgaLua - General 9 12,299 07-25-2007, 01:44 PM
  Thread: Browser Interaction with URLs
Post: RE: Browser Interaction with URLs

Tested successfully in Windows XP Home, although Windows has yet another silly issue. File paths that include spaces will not work simply by enclosing the string in quotes. The spaces themselves must ...
mikshaw MurgaLua - General 9 12,299 07-27-2007, 12:11 AM
  Thread: [WIP] MurgaLua Reference Tool
Post: RE: [WIP] MurgaLua Reference Tool - a little help?

Small update: I'm continuing to work on the project at least a few minutes every day, so it is progressing. With each new piece, though, I'm finding new things that I have to learn (or relearn in a...
mikshaw MurgaLua - General 109 1,257,227 07-27-2007, 12:35 AM
Pages (27): « First < Previous 1 2 3 4 [5] 6 7 8 9 Next > Last »