|
Stupid newb + file_select_ex = stupid newb post about file_select_ex |
Ampersand
Member #5,622
March 2005
|
Hey guys; Trying to write up a quick little program here. I've done ok so far, but I've never used the GUI componants. Yes, I've heard that no one likes the Allegro GUI. But I only need one thing from it: The File Dialog box. I figure it's simpler to use an ugly box that's already made than to make one of my own. Problem is, I haven't a clue how to use it. Can anyone throw me a quick example of getting the GUI box onscreen? I checked the GUI Clinic tutorials but they didn't have anything about it listed there. Sidenote: If I do need a GUI later, what's everyone's recommendation here? Thanks! |
kdevil
Member #1,075
March 2001
|
Quick little "select a picture to load" dialog using file_select_ex: char path[100] = ""; BITMAP *temp; if (file_select_ex("Select a picture", path, "BMP;LBM;PCX;TGA", sizeof(path), 600, 460) != 0) { temp = load_bitmap(path, NULL); }
----- |
Michael Faerber
Member #4,800
July 2004
|
Quote: If I do need a GUI later, what's everyone's recommendation here?
MASkinG is a good one. -- |
|