From: Arjen Markus on
On 7 feb, 01:00, Arjan <arjan.van.d...(a)rivm.nl> wrote:
> Try constructing something in TCL/TK. Immediate results! The resulting
> gui works on Windows, linux and Mac with the same source code! I
> constructed a very nice gui for my ASCII-input-file-based fortran
> program. With some help from the people on comp.lang.tcl... Browse the
> wiki!
>
> Arjan

The Wiki Arjan is referring to is: http://wiki.tcl.tk

There are a number of ways you can use Tcl/Tk to create GUIs for
Fortran programs:

- The GUI prepares all the input for the Fortran program
- The GUI takes over the dialogue that the Fortran program normally
presents
- The GUI uses the Fortran routines directly to do the computations
- Create the GUI from within the Fortran program using the facilities
offered by Tcl/Tk.

For the first nothing special is required. For the second, the Tclers'
Wiki
provides a few examples (though they may require some help from the
Fortran
program - due to buffering the output!).

For the third (and - incomplete! - the fourth), have a look at my Ftcl
project -
http://ftcl.sf.net.

Regards,

Arjen
From: senhortomas on
On Feb 6, 4:47 pm, "ralf.schaa" <ralf.sc...(a)gmail.com> wrote:
> I am thinking of developing a GUI (including OpenGL) for a Fortran
> program  - specifically I think of using Java for this task, given the
> platform independence. Now, I do not know Java or C/C++ and older
> threads recommend a simple way by communicating through text files ...
> more fancy ways seem quite elaborate via C/C++.
> Has anything changed since Fortran 2003, given the C-
> interoperability?
>
> Are other languages than Java more suitable for this task? What do you
> use?
>
> Cheers
> -Ralf

I have placed a ZIP file containing a demonstration (MENU.EXE) of a
textual user interface at the link:

http://www.corrugraphics.com/TUI/Fortran TUI.zip


You may download the file and view my demo. I would be interested in
comments regarding its utility. The code was written and compiled
with Microsoft Powerstation and uses some internal subprograms unique
to that particular compiler. Some difficulties I have had with
converting the code to CVF 6.5 can be read about on the thread How to
print Extended ASCII Characters:

http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/7bce0094d9f082bd#

From: senhortomas on
On Feb 6, 4:47 pm, "ralf.schaa" <ralf.sc...(a)gmail.com> wrote:
> I am thinking of developing a GUI (including OpenGL) for a Fortran
> program  - specifically I think of using Java for this task, given the
> platform independence. Now, I do not know Java or C/C++ and older
> threads recommend a simple way by communicating through text files ...
> more fancy ways seem quite elaborate via C/C++.
> Has anything changed since Fortran 2003, given the C-
> interoperability?
>
> Are other languages than Java more suitable for this task? What do you
> use?
>
> Cheers
> -Ralf

I have placed a ZIP file containing a demonstration (MENU.EXE) of a
textual user interface at the link:

http://www.corrugraphics.com/TUI/Fortran_TUI.zip


You may download the file and view my demo. I would be interested in
comments regarding its utility. The code was written and compiled
with Microsoft Powerstation and uses some internal subprograms unique
to that particular compiler. Some difficulties I have had with
converting the code to CVF 6.5 can be read about on the thread How to
print Extended ASCII Characters:

http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/7bce0094d9f082bd#

From: user1 on
senhortomas wrote:
>
>
> You may download the file and view my demo. I would be interested in
> comments regarding its utility. The code was written and compiled
> with Microsoft Powerstation and uses some internal subprograms unique
> to that particular compiler. Some difficulties I have had with
> converting the code to CVF 6.5 can be read about on the thread How to
> print Extended ASCII Characters:
>


Obsolete compiler and OS limits utility. For TUI work it may be more
portable to use pdcurses. It is, of course, written in C.

I stumbled onto a pdcurses module for fortran at
http://www.qimr.edu.au/davidD/Curses/testcurs.f95

From: albert on
I compile my Fortran Subroutines into dlls using gfortran, and write
guis to call the dlls and display results etc. using the Free Pascal
Compiler, Lazarus Project ide.
As Gfortran and Lazarus are available for Linux, Windows and Mac, it's
a cross platform solution. Also, Lazarus is released under the LGPL
licence so it's possible to build comercial software with it.

Regards

Albert