(j3.2006) Fwd: FORTRAN input from the mouse

Lionel, Steve steve.lionel
Thu Jun 13 09:24:01 EDT 2013


Windows provides an API for this, called GetOpenFileName. It opens a file selection dialog, just as Notepad can, and returns to the caller the filename(s) selected by the user. Intel Visual Fortran even provides a sample program illustrating its use, called, unsurprisingly, GetOpenFileName, but I am fairly certain this routine can be called from other Fortran compilers on Windows with the appropriate declarations.

The user is not looking for the name of the executable file.  As noted, this capability is not part of the Fortran language, but like a lot of OS features (at least on Windows), is readily accessible from Fortran programs.

Now, if the user wanted to do this on non-Windows systems, he would have to find a Fortran-callable way of doing this. I think that third-party GUI libraries such as Winteracter and GINOMENU have this, but neither Linux nor OS X have such a thing built in the way Windows does.

Steve Lionel
Intel Developer Support
Merrimack, NH



-----Original Message-----
From: j3-bounces at mailman.j3-fortran.org [mailto:j3-bounces at mailman.j3-fortran.org] On Behalf Of John Reid
Sent: Thursday, June 13, 2013 3:58 AM
To: fortran standards email list for J3
Subject: (j3.2006) Fwd: FORTRAN input from the mouse

Dear all,

Can anyone help me to reply to this message? I could just say that what he wants is outside the scope of the standard, but would like to make a helpful suggestion.

Cheers,

John.



More information about the J3 mailing list