Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

If I had only known, I would have been a locksmith. -- Albert Einstein


devel / comp.lang.fortran / JAPI for GUI

SubjectAuthor
* JAPI for GUIMedian Joe
`* Re: JAPI for GUIMedian Joe
 `* Re: JAPI for GUIDavid Duffy
  `- Re: JAPI for GUIMedian Joe

1
JAPI for GUI

<ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2305&group=comp.lang.fortran#2305

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:5e0f:0:b0:2fc:60f5:dd87 with SMTP id h15-20020ac85e0f000000b002fc60f5dd87mr5788220qtx.537.1653648277829;
Fri, 27 May 2022 03:44:37 -0700 (PDT)
X-Received: by 2002:a81:8102:0:b0:2f8:f5fb:b805 with SMTP id
r2-20020a818102000000b002f8f5fbb805mr43410051ywf.128.1653648277616; Fri, 27
May 2022 03:44:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 27 May 2022 03:44:37 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=81.170.91.168; posting-account=_Sva5AoAAAD2oymju7GDV0zebukPRj7m
NNTP-Posting-Host: 81.170.91.168
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com>
Subject: JAPI for GUI
From: jules1.davy@gmail.com (Median Joe)
Injection-Date: Fri, 27 May 2022 10:44:37 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Median Joe - Fri, 27 May 2022 10:44 UTC

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.

Re: JAPI for GUI

<d4242d84-4b62-403b-9de8-ad2507ae532fn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2306&group=comp.lang.fortran#2306

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:16d9:b0:6a3:75ae:b39d with SMTP id a25-20020a05620a16d900b006a375aeb39dmr18892147qkn.274.1653657559366;
Fri, 27 May 2022 06:19:19 -0700 (PDT)
X-Received: by 2002:a81:91d4:0:b0:2fe:e300:3581 with SMTP id
i203-20020a8191d4000000b002fee3003581mr44147684ywg.7.1653657559159; Fri, 27
May 2022 06:19:19 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 27 May 2022 06:19:18 -0700 (PDT)
In-Reply-To: <ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=81.170.91.168; posting-account=_Sva5AoAAAD2oymju7GDV0zebukPRj7m
NNTP-Posting-Host: 81.170.91.168
References: <ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <d4242d84-4b62-403b-9de8-ad2507ae532fn@googlegroups.com>
Subject: Re: JAPI for GUI
From: jules1.davy@gmail.com (Median Joe)
Injection-Date: Fri, 27 May 2022 13:19:19 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: Median Joe - Fri, 27 May 2022 13:19 UTC

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.

Re: JAPI for GUI

<t6rvm5$1nur$1@gioia.aioe.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2313&group=comp.lang.fortran#2313

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!aioe.org!iwdZGrEEcEqxXO+mXrCKKA.user.46.165.242.75.POSTED!not-for-mail
From: davidD@qimr.edu.au (David Duffy)
Newsgroups: comp.lang.fortran
Subject: Re: JAPI for GUI
Date: Sat, 28 May 2022 01:59:35 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t6rvm5$1nur$1@gioia.aioe.org>
References: <ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com> <d4242d84-4b62-403b-9de8-ad2507ae532fn@googlegroups.com>
Injection-Info: gioia.aioe.org; logging-data="57307"; posting-host="iwdZGrEEcEqxXO+mXrCKKA.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: tin/2.4.4-20191224 ("Millburn") (Linux/5.4.0-113-generic (x86_64))
X-Notice: Filtered by postfilter v. 0.9.2
 by: David Duffy - Sat, 28 May 2022 01:59 UTC

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

Re: JAPI for GUI

<86ea4cc1-8df0-4665-8a54-864667d6d7b8n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2314&group=comp.lang.fortran#2314

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a37:6782:0:b0:6a3:43c2:609a with SMTP id b124-20020a376782000000b006a343c2609amr28576941qkc.527.1653720940279;
Fri, 27 May 2022 23:55:40 -0700 (PDT)
X-Received: by 2002:a81:6145:0:b0:2f1:7a81:83f with SMTP id
v66-20020a816145000000b002f17a81083fmr47375460ywb.366.1653720940062; Fri, 27
May 2022 23:55:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Fri, 27 May 2022 23:55:39 -0700 (PDT)
In-Reply-To: <t6rvm5$1nur$1@gioia.aioe.org>
Injection-Info: google-groups.googlegroups.com; posting-host=81.170.91.168; posting-account=_Sva5AoAAAD2oymju7GDV0zebukPRj7m
NNTP-Posting-Host: 81.170.91.168
References: <ab526c2f-5dfa-4b04-b514-bb98843d6c5cn@googlegroups.com>
<d4242d84-4b62-403b-9de8-ad2507ae532fn@googlegroups.com> <t6rvm5$1nur$1@gioia.aioe.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <86ea4cc1-8df0-4665-8a54-864667d6d7b8n@googlegroups.com>
Subject: Re: JAPI for GUI
From: jules1.davy@gmail.com (Median Joe)
Injection-Date: Sat, 28 May 2022 06:55:40 +0000
Content-Type: text/plain; charset="UTF-8"
 by: Median Joe - Sat, 28 May 2022 06:55 UTC

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

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor