saving and opening files from a bmax app
BlitzMax Forums/BlitzMax Programming/saving and opening files from a bmax app
| ||
I'm making an editor which should be able to save and load files. Now it's not too hard to make a function that opens and saves files in one folder only, but it starts to be quite tedious to do a complete (and possibly prety) interface to browse among various folders. Is there any module ready that does this? Has anybody already written bmax code that does this? is it possible to do the appropriate win / mac calls to open the "standard" interface for openng-saving files? How? Thanks, Matteo |
| ||
For windows, you can simply use the windows api. I think there has even been a code for that around the board - code archive (file requester). Perhaps it has implementation for other OS as well :-) |
| ||
Like RequestFile()? |
| ||
Hmmm, iGlass had a folder browser in it. It was kind of buggy in the first release, I dont know how it is now, I haven't used it. It costs $42-ish US$ though. http://www.blitzbasic.com/toolbox/toolbox.php?tool=130 Dont know if thats acceptable or not. Check the demo! |
| ||
Thanks everyone, TwoEyedPete's suggestion works just fine. Very cool, bmax has already the standard interface for saving and loading stuff :-) Only problem, it does not refresh the bmax window on background at all (at least on windows XP), causing the usual visual problem. |
| ||
No. File requesters are modal dialogs. |