Open File Gadgets?

BlitzMax Forums/MaxGUI Module/Open File Gadgets?

Jayjay(Posted 2009) [#1]
Hi All,

Thanks in adavance for your help!

In MaxGUI are there any pre-made dialogues such as file open windows. for example, if my main window has a :File->Open option is there a dialogue I can call that will allow the user to find and open a file then passs this filename back to my program?


skidracer(Posted 2009) [#2]
The RequestFile command is actually part of core BitzMax:

' requestfile.bmx

filter$="Image Files:png,jpg,bmp;Text Files:txt;All Files:*"
filename$=RequestFile( "Select graphic file to open",filter$ )

Print filename



SebHoll(Posted 2009) [#3]
As Skid said,

RequestDir$(), RequestColor() and RequestFile$() are included with BlitzMax.

There is also RequestFont:TGuiFont() for MaxGUI.


jsp(Posted 2009) [#4]
and some other pre-made dialogues:

RequestColor(r,g,b) - Prompts the user for a color.
RequestDir$( text$,initial_path$="" ) - Display system folder requester.
RequestFont:TGuiFont(font:TGuiFont=Null) - Prompts the user to select a system font.
Proceed( text$,serious=False ) - Request user confirmation or cancellation.
Confirm( text$,serious=False ) - Request user confirmation.
Notify( text$,serious=False ) - Notify user.


Jayjay(Posted 2009) [#5]
Skid Racer, SebHoll & JSP

You guys are good!

Thanks...I can now sleep tonight...you may just have saved my marriage!


Much two's complement!

J