How to open a dialog box

Hi!

I would like to know how can i create a dialog box (for choosing a file to
be displayed on a screen…
for example: on my screen is displayed a picture (pic01.jpg) and i want to
choose either of the other file in the same dir (imgXX.jpg) (note that the
name of the file has to be different)
does anybody knows how to do that or if there’s another way to do it without
a dialog box (i would prefer to choose the files i want to be displayed
without typing on the keyboard just moving and clicking with the mouse)

thx

Olivier caignart - Happy Frenchie_________________________________________________________________
Rejoignez le plus grand service de messagerie au monde avec MSN Hotmail.
http://www.hotmail.com/fr

You can’t open dialog boxes or other Gui components with pure SDL calls.

But there are several fullscreen Gui libraries at
http://www.libsdl.org/libraries.html
e.g. paragui at http://www.paragui.org

There are also libraries for cross-platform file access like PhysicsFS
(http://icculus.org/physfs/)On Thursday 11 April 2002 08:03, olivier caignart wrote:

Hi!

I would like to know how can i create a dialog box (for choosing a file to
be displayed on a screen…
for example: on my screen is displayed a picture (pic01.jpg) and i want to
choose either of the other file in the same dir (imgXX.jpg) (note that the
name of the file has to be different)
does anybody knows how to do that or if there’s another way to do it
without a dialog box (i would prefer to choose the files i want to be
displayed without typing on the keyboard just moving and clicking with the
mouse)


Johannes Schmidt

< http://libufo.sourceforge.net > Your widget set for OpenGL