• JAPI for GUI

    From Median Joe@21:1/5 to All on Fri May 27 03:44:37 2022
    I've been looking around for a simple GUI and came across JAPI:

    https://userpages.uni-koblenz.de/~evol/japi/japi2/japi.html

    Just wondered whether anyone is using it because I'm having problems getting it to work on my Linux64 box and gfortran. I know about the other gui options such as dislin and gtk-fortran, but the former is too simple and the latter too complex for my
    needs. JAPI seems perfect if only I can get it to work.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Median Joe@21:1/5 to Median Joe on Fri May 27 06:19:18 2022
    On Friday, May 27, 2022 at 11:44:39 AM UTC+1, Median Joe wrote:
    I've been looking around for a simple GUI and came across JAPI:

    https://userpages.uni-koblenz.de/~evol/japi/japi2/japi.html

    Just wondered whether anyone is using it because I'm having problems getting it to work on my Linux64 box and gfortran. I know about the other gui options such as dislin and gtk-fortran, but the former is too simple and the latter too complex for my
    needs. JAPI seems perfect if only I can get it to work.

    I discovered that the problem is with "japi.f", which is incomplete. I know the problem isn't with the library because I tested it with the pascal compiler and the examples work with no problems.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David Duffy@21:1/5 to Median Joe on Sat May 28 01:59:35 2022
    Median Joe <jules1.davy@gmail.com> wrote:
    On Friday, May 27, 2022 at 11:44:39 AM UTC+1, Median Joe wrote:
    I've been looking around for a simple GUI and came across JAPI:

    https://userpages.uni-koblenz.de/~evol/japi/japi2/japi.html

    Just wondered whether anyone is using it because I'm having problems
    getting it to work on my Linux64 box and gfortran. I know about the
    other gui options such as dislin and gtk-fortran, but the former is too
    simple and the latter too complex for my needs. JAPI seems perfect if
    only I can get it to work.

    I discovered that the problem is with "japi.f", which is incomplete.
    I know the problem isn't with the library because I tested it with the
    pascal compiler and the examples work with no problems.

    I have successfully used this in the past from Fortran, you'll have to grep
    for JAPI in this code for the appropriate modules:

    http://users.tpg.com.au/davidd02/sib-pair.f95.gz

    which is compiled with -DJAPI ... -ljapi

    A script testing Sib-pair's use of JAPI starts
    eval (j_start) \
    (define frame (j_frame "Dialog Demo")) \
    (define menubar (j_menubar frame)) \
    (define fil (j_menu menubar "File")) \
    (define qui (j_menuitem fil "quit")) \
    (define doi (j_menu menubar "Do It")) \
    (define ope (j_menuitem doi "Open Dialog")) \
    (define dialog (j_dialog frame "Say Hello!")) \
    (define label (j_label dialog "Hello World")) \
    (define clo (j_button dialog "Close")) \
    (j_setflowlayout dialog 1) \
    (j_pack dialog) \
    (j_show frame)
    eval (j_quit)

    See https://genepi.qimr.edu.au/Staff/davidD/Sib-pair/Documents/Using_Sib-pair/Commands/eval.html
    for the list of JAPI functions that are called.

    Cheers, David Duffy

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Median Joe@21:1/5 to David Duffy on Fri May 27 23:55:39 2022
    On Saturday, May 28, 2022 at 2:59:44 AM UTC+1, David Duffy wrote:
    Median Joe <jules...@gmail.com> wrote:
    On Friday, May 27, 2022 at 11:44:39 AM UTC+1, Median Joe wrote:
    I've been looking around for a simple GUI and came across JAPI:

    https://userpages.uni-koblenz.de/~evol/japi/japi2/japi.html

    Just wondered whether anyone is using it because I'm having problems
    getting it to work on my Linux64 box and gfortran. I know about the
    other gui options such as dislin and gtk-fortran, but the former is too
    simple and the latter too complex for my needs. JAPI seems perfect if
    only I can get it to work.

    I discovered that the problem is with "japi.f", which is incomplete.
    I know the problem isn't with the library because I tested it with the pascal compiler and the examples work with no problems.
    I have successfully used this in the past from Fortran, you'll have to grep for JAPI in this code for the appropriate modules:

    http://users.tpg.com.au/davidd02/sib-pair.f95.gz

    which is compiled with -DJAPI ... -ljapi

    A script testing Sib-pair's use of JAPI starts
    eval (j_start) \
    (define frame (j_frame "Dialog Demo")) \
    (define menubar (j_menubar frame)) \
    (define fil (j_menu menubar "File")) \
    (define qui (j_menuitem fil "quit")) \
    (define doi (j_menu menubar "Do It")) \
    (define ope (j_menuitem doi "Open Dialog")) \
    (define dialog (j_dialog frame "Say Hello!")) \
    (define label (j_label dialog "Hello World")) \
    (define clo (j_button dialog "Close")) \
    (j_setflowlayout dialog 1) \
    (j_pack dialog) \
    (j_show frame)
    eval (j_quit)

    See https://genepi.qimr.edu.au/Staff/davidD/Sib-pair/Documents/Using_Sib-pair/Commands/eval.html
    for the list of JAPI functions that are called.

    Cheers, David Duffy
    David, many thanks. I'll give it a try. I'm using version 2.0 of japi but it should still work ok because as far as I'm aware the functions and constants didn't change between versions.
    cheers,
    Joe

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)