Open File Gadgets?
BlitzMax Forums/MaxGUI Module/Open File Gadgets?
| ||
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? |
| ||
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 |
| ||
As Skid said, RequestDir$(), RequestColor() and RequestFile$() are included with BlitzMax. There is also RequestFont:TGuiFont() for MaxGUI. |
| ||
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. |
| ||
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 |