saving and opening files from a bmax app

BlitzMax Forums/BlitzMax Programming/saving and opening files from a bmax app

Najdorf(Posted 2005) [#1]
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


Dreamora(Posted 2005) [#2]
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 :-)


Yan(Posted 2005) [#3]
Like RequestFile()?


Booticus(Posted 2005) [#4]
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!


Najdorf(Posted 2005) [#5]
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.


FlameDuck(Posted 2005) [#6]
No. File requesters are modal dialogs.