Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Programmers do it bit by bit.


devel / comp.lang.ada / Re: Ada_GUI

SubjectAuthor
* Ada_GUIAdaMagica
`* Re: Ada_GUIJeffrey R.Carter
 `* Re: Ada_GUIJeffrey R.Carter
  +* Re: Ada_GUIAdaMagica
  |`* Re: Ada_GUIJeffrey R.Carter
  | `* Re: Ada_GUIAdaMagica
  |  `* Re: Ada_GUIAdaMagica
  |   `* Re: Ada_GUIJeffrey R.Carter
  |    +- Re: Ada_GUIJeffrey R.Carter
  |    `* Re: Ada_GUIAdaMagica
  |     `* Re: Ada_GUIJeffrey R.Carter
  |      +* Re: Ada_GUIAdaMagica
  |      |`- Re: Ada_GUIJeffrey R.Carter
  |      `- Re: Ada_GUIAdaMagica
  `- Re: Ada_GUIJeffrey R.Carter

1
Ada_GUI

<410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6792&group=comp.lang.ada#6792

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:2f04:0:b0:663:397d:7051 with SMTP id v4-20020a372f04000000b00663397d7051mr2822713qkh.333.1649175985567;
Tue, 05 Apr 2022 09:26:25 -0700 (PDT)
X-Received: by 2002:a25:9d8f:0:b0:633:8e97:a414 with SMTP id
v15-20020a259d8f000000b006338e97a414mr3436092ybp.356.1649175985377; Tue, 05
Apr 2022 09:26:25 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Tue, 5 Apr 2022 09:26:25 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
Subject: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Tue, 05 Apr 2022 16:26:25 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 4
 by: AdaMagica - Tue, 5 Apr 2022 16:26 UTC

I'm playing around with Ada_GUI. The idea is excellent doing without callbacks. But it seems more like a prove of concept.
While the features as far as available are quite easy to use and fulfil all basic needs of a gui, it's extremely cumbersome to get a halfway nice layout.
A few questions:
The icon in Set_Up is not displayed. Why?
Is it possible to define Text_Boxes read only?

Re: Ada_GUI

<t2i5d7$c64$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6793&group=comp.lang.ada#6793

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Tue, 5 Apr 2022 21:30:47 +0200
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <t2i5d7$c64$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 5 Apr 2022 19:30:47 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d77934c13392189d8d8783a2644ad33d";
logging-data="12484"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pX+hfqtc99UYN9DHHWTdBXwoeNzSIvPw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:z89XFElJWPeSEfCwaTcp+JnNyYU=
In-Reply-To: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R.Carter - Tue, 5 Apr 2022 19:30 UTC

On 2022-04-05 18:26, AdaMagica wrote:
> While the features as far as available are quite easy to use and fulfil all basic needs of a gui, it's extremely cumbersome to get a halfway nice layout.

The layout is solely automatic, at least for now. The combination of display
areas and alignment can make up for its limitations in many cases, but for those
designs where they don't, Ada GUI is not currently a suitable choice.

You could open an issue with a description of what you're unable to achieve, and
ideas for an interface to achieve it, if you'd like this to be considered.

> A few questions:
> The icon in Set_Up is not displayed. Why?

The icon is always displayed for me; the file is always in the working
directory, given as a simple file name. If the file is not in the working
directory then a path is needed. Without more detail I cannot guess why you
don't get it.

> Is it possible to define Text_Boxes read only?

It would be possible to add such a feature for the modifiable text widgets, and
I will treat this as a feature request, but you might like to use a
Background_Text for read-only output.

--
Jeff Carter
"When danger reared its ugly head, he bravely
turned his tail and fled."
Monty Python and the Holy Grail
60

Re: Ada_GUI

<t2jf18$5pd$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6794&group=comp.lang.ada#6794

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Wed, 6 Apr 2022 09:21:12 +0200
Organization: A noiseless patient Spider
Lines: 16
Message-ID: <t2jf18$5pd$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Apr 2022 07:21:12 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="bbec146aa3a9d2b8cb21dc2d11b41653";
logging-data="5933"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+UZg7KsqdLyCOx0Jl0EJDZgcktm+P64/k="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:wu6P4Ubuwe1DQm6fcXxO1qEZ+DU=
In-Reply-To: <t2i5d7$c64$1@dont-email.me>
Content-Language: en-US
 by: Jeffrey R.Carter - Wed, 6 Apr 2022 07:21 UTC

On 2022-04-05 21:30, Jeffrey R.Carter wrote:
>
> The icon is always displayed for me; the file is always in the working
> directory, given as a simple file name. If the file is not in the working
> directory then a path is needed. Without more detail I cannot guess why you
> don't get it.

Update: the icon had been displaying for me, but in reviewing this I see that
this is no longer the case. I don't know why this has changed. I will look into it.

--
Jeff Carter
"We'll make Rock Ridge think it's a chicken
that got caught in a tractor's nuts!"
Blazing Saddles
87

Re: Ada_GUI

<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6795&group=comp.lang.ada#6795

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:1279:b0:67e:e60:1bc4 with SMTP id b25-20020a05620a127900b0067e0e601bc4mr5992286qkl.374.1649258952590;
Wed, 06 Apr 2022 08:29:12 -0700 (PDT)
X-Received: by 2002:a81:cf06:0:b0:2db:f404:d7b with SMTP id
u6-20020a81cf06000000b002dbf4040d7bmr7726899ywi.334.1649258952455; Wed, 06
Apr 2022 08:29:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Wed, 6 Apr 2022 08:29:12 -0700 (PDT)
In-Reply-To: <t2jf18$5pd$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Wed, 06 Apr 2022 15:29:12 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1958
 by: AdaMagica - Wed, 6 Apr 2022 15:29 UTC

Hi Jeff,
I observe very strange behaviour wrt icon.
Today it suddenly appeared with yesterday's executable. It's your favicon.ico. I deleted the file, and very strangely, if I start the executable again, favicon is still there.
More strange behaviour: I replaced it by my own Ada.ico - drum roll: favicon is still there. When I kill the exe, I get:
2022-04-06 17:18:35.69 : Deleting connection - 1
2022-04-06 17:18:35.70 : Connection error ID-1 with message : raised ADA.IO_EXCEPTIONS.LAYOUT_ERROR : Subscript error

2022-04-06 17:18:35.71 : HTTP Server Stopping
2022-04-06 17:18:35.74 : Normal exit of task: main_task_00000000009D5710
[2022-04-06 17:18:35] process terminated successfully, elapsed time: 08.79s

Christoph

Re: Ada_GUI

<t2kbog$una$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6796&group=comp.lang.ada#6796

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Wed, 6 Apr 2022 17:31:28 +0200
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <t2kbog$una$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Apr 2022 15:31:28 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d96c7bae9a0bf0ccf60205195e88b5bd";
logging-data="31466"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nBmwOECIUxyPGRCtCDqxmvZcBzplHF8A="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:wFJQzWWjiDxGbh1xDZ3CtJhYOi8=
In-Reply-To: <t2jf18$5pd$1@dont-email.me>
Content-Language: en-US
 by: Jeffrey R.Carter - Wed, 6 Apr 2022 15:31 UTC

On 2022-04-06 09:21, Jeffrey R.Carter wrote:
>
> Update: the icon had been displaying for me, but in reviewing this I see that
> this is no longer the case. I don't know why this has changed. I will look into it.

Displaying the icon is done by boot.html. At some point the HTML that displays
it was removed in the copy that I made from Gnoga. The relevant lines are

<meta name="generator" content="Gnoga" />
<link rel="shortcut icon" href="favicon.ico">

However, restoring the HTML to include this now results in the program hanging
on startup. This appears to be an HTML/browser issue that needs further
investigation.

--
Jeff Carter
"We'll make Rock Ridge think it's a chicken
that got caught in a tractor's nuts!"
Blazing Saddles
87

Re: Ada_GUI

<t2kc6i$ad7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6797&group=comp.lang.ada#6797

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Wed, 6 Apr 2022 17:38:57 +0200
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <t2kc6i$ad7$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 6 Apr 2022 15:38:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d96c7bae9a0bf0ccf60205195e88b5bd";
logging-data="10663"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/biAibs5ZQJewFqzEIw9a8t0Kgwh5xnCk="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:EKra3jXrZpyi0zrxVCCX1gpYPxA=
In-Reply-To: <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R.Carter - Wed, 6 Apr 2022 15:38 UTC

On 2022-04-06 17:29, AdaMagica wrote:
> Hi Jeff,
> I observe very strange behaviour wrt icon.
> Today it suddenly appeared with yesterday's executable. It's your favicon.ico.

Curious, see my post of a few minutes ago.

>I deleted the file, and very strangely, if I start the executable again,
favicon is still there.
> More strange behaviour: I replaced it by my own Ada.ico - drum roll: favicon is still there.

Browsers cache things.

>
When I kill the exe, I get:
> 2022-04-06 17:18:35.69 : Deleting connection - 1
> 2022-04-06 17:18:35.70 : Connection error ID-1 with message : raised ADA.IO_EXCEPTIONS.LAYOUT_ERROR : Subscript error
>
> 2022-04-06 17:18:35.71 : HTTP Server Stopping
> 2022-04-06 17:18:35.74 : Normal exit of task: main_task_00000000009D5710
> [2022-04-06 17:18:35] process terminated successfully, elapsed time: 08.79s

The exception msg always occurs when the program ends. At that point it doesn't
seem important, so I haven't put much effort into suppressing it.

--
Jeff Carter
"We'll make Rock Ridge think it's a chicken
that got caught in a tractor's nuts!"
Blazing Saddles
87

Re: Ada_GUI

<e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6798&group=comp.lang.ada#6798

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:454b:b0:67e:4202:32b8 with SMTP id u11-20020a05620a454b00b0067e420232b8mr6268153qkp.278.1649260352832;
Wed, 06 Apr 2022 08:52:32 -0700 (PDT)
X-Received: by 2002:a5b:9cc:0:b0:61d:f7ba:7fc with SMTP id y12-20020a5b09cc000000b0061df7ba07fcmr6650705ybq.434.1649260352708;
Wed, 06 Apr 2022 08:52:32 -0700 (PDT)
Path: i2pn2.org!i2pn.org!aioe.org!news.freedyn.de!newsreader4.netcologne.de!news.netcologne.de!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Wed, 6 Apr 2022 08:52:32 -0700 (PDT)
In-Reply-To: <t2kc6i$ad7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me> <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Wed, 06 Apr 2022 15:52:32 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1519
 by: AdaMagica - Wed, 6 Apr 2022 15:52 UTC

> > More strange behaviour: I replaced it by my own Ada.ico - drum roll: favicon is still there.
> Browsers cache things.
You're right, I deleted the cash and favicon is gone - but Ada.ico does not appear.

Re: Ada_GUI

<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6804&group=comp.lang.ada#6804

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a0c:8e0b:0:b0:435:1779:7b22 with SMTP id v11-20020a0c8e0b000000b0043517797b22mr16483205qvb.63.1649426740162;
Fri, 08 Apr 2022 07:05:40 -0700 (PDT)
X-Received: by 2002:a81:e24c:0:b0:2eb:4513:3793 with SMTP id
z12-20020a81e24c000000b002eb45133793mr15463606ywl.204.1649426739881; Fri, 08
Apr 2022 07:05:39 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 8 Apr 2022 07:05:39 -0700 (PDT)
In-Reply-To: <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me> <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me> <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Fri, 08 Apr 2022 14:05:40 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 3
 by: AdaMagica - Fri, 8 Apr 2022 14:05 UTC

More findings:
Surprisingly, even background text generates an event when clicked upon.
My icon Ada.ico is not displayed. If favicon.ico is present in the current directory, it is displayed even if Ada.ico is given in Set_Up.
Very strange.

Re: Ada_GUI

<t2ph0l$ur7$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6805&group=comp.lang.ada#6805

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Fri, 8 Apr 2022 16:31:49 +0200
Organization: A noiseless patient Spider
Lines: 34
Message-ID: <t2ph0l$ur7$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me>
<e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Apr 2022 14:31:49 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="feca2a9725ec200c5854fa948950cc97";
logging-data="31591"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+qapgYtjr/kZjv8hfvMkodbHMYvE+soiI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:GPqNMVXC5qNc5SCpC+uUgELChxM=
In-Reply-To: <62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R.Carter - Fri, 8 Apr 2022 14:31 UTC

On 2022-04-08 16:05, AdaMagica wrote:
> More findings:
> Surprisingly, even background text generates an event when clicked upon.

All widgets generate mouse-click events.

> My icon Ada.ico is not displayed. If favicon.ico is present in the current directory, it is displayed even if Ada.ico is given in Set_Up.
> Very strange.

Have you cleared cache between displaying favicon.ico and trying with Ada.ico?
Have you tried renaming Ada.ico to favicon.ico?
Does your boot.html contain the string "favicon.ico"?

I upgraded to a new version of Firefox last night and now favicon.ico is
appearing again if I have boot.html without "favicon.ico" in it. It still hangs
on startup for the version of boot.html with it.

ada_gui-gnoga-server-connection.adb at line 574 modifies boot.html to replace
"favicon.ico" with the icon name passed to Set_Up, if it contains that string
and a non-null icon name was given. Apparently that, or processing the modified
file, hangs. If boot.html does not contain that string, apparently favicon.ico
is used if it exists.

So currently it seems that if you want an icon, it has to be named favicon.ico
and the string passed to Set_Up is ignored.

I'll investigate further.

--
Jeff Carter
"Blessed are they who convert their neighbors'
oxen, for they shall inhibit their girth."
Monty Python's Life of Brian
83

Re: Ada_GUI

<t2q7h0$osg$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6809&group=comp.lang.ada#6809

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Fri, 8 Apr 2022 22:56:00 +0200
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <t2q7h0$osg$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me>
<e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
<t2ph0l$ur7$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 8 Apr 2022 20:56:00 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="5b7cd8d2b5faad49f2be77ad779a730c";
logging-data="25488"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ABe4jCmle2Bj81VCdkYhqOFBgIFZfLi0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:tHXHLkb5RUY6h5/SaQ9SIQiMZGA=
In-Reply-To: <t2ph0l$ur7$1@dont-email.me>
Content-Language: en-US
 by: Jeffrey R.Carter - Fri, 8 Apr 2022 20:56 UTC

On 2022-04-08 16:31, Jeffrey R.Carter wrote:
>
> I upgraded to a new version of Firefox last night and now favicon.ico is
> appearing again if I have boot.html without "favicon.ico" in it. It still hangs
> on startup for the version of boot.html with it.
>
> ada_gui-gnoga-server-connection.adb at line 574 modifies boot.html to replace
> "favicon.ico" with the icon name passed to Set_Up, if it contains that string
> and a non-null icon name was given. Apparently that, or processing the modified
> file, hangs. If boot.html does not contain that string, apparently favicon.ico
> is used if it exists.

The replacement is done with procedure String_Replace, in Ada_Gui.Gnoga:

procedure String_Replace
(Source : in out Ada.Strings.Unbounded.Unbounded_String;
Pattern : in String;
Replacement : in String);
-- Replace all instances of Pattern with Replacement in Source

However, there is a logic error in String_Replace: if Pattern = Replacement, it
becomes an infinite loop. So the default value of Icon for Set_Up, or an
explicit value of "favicon.ico", results in an infinite loop when this
replacement is done.

Correcting it to return immediately in that case, and using the version of
boot.html that contains the text that results in the replacement being
performed, I get favicon.ico with the default value for Icon, and the specified
file with an explicit value, provided that I clear cache between runs.

I will update Github with the correction soon, but in the meantime, interested
persons can make the change themselves to use a different icon file.

--
Jeff Carter
"Blessed are they who convert their neighbors'
oxen, for they shall inhibit their girth."
Monty Python's Life of Brian
83

Re: Ada_GUI

<b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6813&group=comp.lang.ada#6813

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:5e50:0:b0:2eb:871f:be31 with SMTP id i16-20020ac85e50000000b002eb871fbe31mr19310208qtx.382.1649505590347;
Sat, 09 Apr 2022 04:59:50 -0700 (PDT)
X-Received: by 2002:a05:690c:39d:b0:2eb:c3b4:55b1 with SMTP id
bh29-20020a05690c039d00b002ebc3b455b1mr11235391ywb.279.1649505590224; Sat, 09
Apr 2022 04:59:50 -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.ada
Date: Sat, 9 Apr 2022 04:59:50 -0700 (PDT)
In-Reply-To: <t2ph0l$ur7$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me> <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me> <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com> <t2ph0l$ur7$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Sat, 09 Apr 2022 11:59:50 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: AdaMagica - Sat, 9 Apr 2022 11:59 UTC

Jeffrey R.Carter schrieb am Freitag, 8. April 2022 um 16:31:51 UTC+2:
> On 2022-04-08 16:05, AdaMagica wrote:
> > My icon Ada.ico is not displayed. If favicon.ico is present in the current directory, it is displayed even if Ada.ico is given in Set_Up.
> > Very strange.
> Have you cleared cache between displaying favicon.ico and trying with Ada..ico?
> Have you tried renaming Ada.ico to favicon.ico?

I renamed it, leaving Ada.ico in Set_Up -- and lo and behold, it is displayed.
Seems the name given in Set_Up is ignored and favicon is used if it exists.

> Does your boot.html contain the string "favicon.ico"?

No, it's what is in the current download. I didn't touch any file.

> I will update Github with the correction soon

Fine, I'll wait for the new version.

Further defects that I found:
There is no dialog with just one OK button. A work-around is using an empty string as a second button (it does not show prominently).
LF does not work in the Ada_GUI.Dialogs.Selected_Button Text parameter. I would need a long Text extending over several lines, for instance "Instructions ...".
Displaying "&euro;" in a Text_Box (via Set_Text) does not work as expected (the HTML string appears, not the € sign).
However directly typing € in the Text_Box works.

But don't worry. I'm just playing around - no real application.

Re: Ada_GUI

<t2s28q$vm8$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6814&group=comp.lang.ada#6814

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Sat, 9 Apr 2022 15:38:34 +0200
Organization: A noiseless patient Spider
Lines: 44
Message-ID: <t2s28q$vm8$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me>
<e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
<t2ph0l$ur7$1@dont-email.me>
<b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 9 Apr 2022 13:38:34 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3f015c6e2ca9e73ec3a6afd1b893cb6c";
logging-data="32456"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+gU/5yrSIYQKhaMMlGDuBWRMPrZPRvgzw="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:Ooso/XF02sYRxsGDexEV40vRALo=
In-Reply-To: <b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R.Carter - Sat, 9 Apr 2022 13:38 UTC

On 2022-04-09 13:59, AdaMagica wrote:
>
> I renamed it, leaving Ada.ico in Set_Up -- and lo and behold, it is displayed.
> Seems the name given in Set_Up is ignored and favicon is used if it exists.

This is the behavior with the version of boot.html without "favicon.ico".

> Fine, I'll wait for the new version.

The changes have been uploaded to Github, including boot.html with "favicon.ico"
in it (in the Test directory). With these changes, the icon file name passed to
Set_Up is used (at least for me on Xubuntu 21.10/Firefox 99.0/GNAT 11.2.0). What
is your platform/browswer/compiler version?

> Further defects that I found:
> There is no dialog with just one OK button. A work-around is using an empty string as a second button (it does not show prominently).

Show_Message_Box does this, which is why the precondition on
Dialogs.Selected_Test only allow two or more buttons. You could also change the
precondition to allow a length of one.

> LF does not work in the Ada_GUI.Dialogs.Selected_Button Text parameter. I would need a long Text extending over several lines, for instance "Instructions ...".

I haven't tried that. You might also try "<br>", but I suspect button text is a
single line. I'll look into this at some point.

> Displaying "&euro;" in a Text_Box (via Set_Text) does not work as expected (the HTML string appears, not the € sign).
> However directly typing € in the Text_Box works. HTML attributes do work in the initial text for a Background_Text (and maybe also a label), but not in text provided through Set_Text.

Yes, Text_Areas and Text_Boxes don't handle HTML attributes (or any other kind
that I've found).

> But don't worry. I'm just playing around - no real application.

The feedback is useful.

--
Jeff Carter
"[B]ecause of our experience in security, we are convinced
that C is too error-prone. Its loose typing, its unsafe
bitfields management, too many compiler dependent behaviors,
etc. easily lead to vulnerabilities."
EwoK developers
163

Re: Ada_GUI

<87a9aa4e-99ac-4172-863e-c68019281286n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6818&group=comp.lang.ada#6818

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:6382:0:b0:69b:fbde:42d1 with SMTP id x124-20020a376382000000b0069bfbde42d1mr3687001qkb.48.1649591118898;
Sun, 10 Apr 2022 04:45:18 -0700 (PDT)
X-Received: by 2002:a0d:ffc3:0:b0:2eb:2327:3361 with SMTP id
p186-20020a0dffc3000000b002eb23273361mr22174084ywf.36.1649591118781; Sun, 10
Apr 2022 04:45:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 10 Apr 2022 04:45:18 -0700 (PDT)
In-Reply-To: <t2s28q$vm8$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me> <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me> <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com> <t2ph0l$ur7$1@dont-email.me>
<b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com> <t2s28q$vm8$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <87a9aa4e-99ac-4172-863e-c68019281286n@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Sun, 10 Apr 2022 11:45:18 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: AdaMagica - Sun, 10 Apr 2022 11:45 UTC

Jeffrey R.Carter schrieb am Samstag, 9. April 2022 um 15:38:36 UTC+2:
> This is the behavior with the version of boot.html without "favicon.ico".
> > Fine, I'll wait for the new version.
> The changes have been uploaded to Github, including boot.html with "favicon.ico"
> in it (in the Test directory). With these changes, the icon file name passed to
> Set_Up is used (at least for me on Xubuntu 21.10/Firefox 99.0/GNAT 11.2.0). What
> is your platform/browswer/compiler version?

I got the latest zip from GitHub and checked, there is a line in boot.html:
<link rel="shortcut icon" href="favicon.ico">
Now Ada.ico as set in Set_Up is shown on Windows 8.1/Firefox 99.0/Gnat CE 2021.

Re: Ada_GUI

<70d26b1c-9134-4e3f-b1f9-4ad0f733c7c0n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6819&group=comp.lang.ada#6819

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:6214:5289:b0:443:a062:1b4 with SMTP id kj9-20020a056214528900b00443a06201b4mr23275370qvb.24.1649592728452;
Sun, 10 Apr 2022 05:12:08 -0700 (PDT)
X-Received: by 2002:a5b:452:0:b0:637:7583:580 with SMTP id s18-20020a5b0452000000b0063775830580mr20022886ybp.559.1649592728267;
Sun, 10 Apr 2022 05:12:08 -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.ada
Date: Sun, 10 Apr 2022 05:12:08 -0700 (PDT)
In-Reply-To: <t2s28q$vm8$1@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=94.31.102.23; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf
NNTP-Posting-Host: 94.31.102.23
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me> <f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me> <e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com> <t2ph0l$ur7$1@dont-email.me>
<b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com> <t2s28q$vm8$1@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <70d26b1c-9134-4e3f-b1f9-4ad0f733c7c0n@googlegroups.com>
Subject: Re: Ada_GUI
From: christ-u...@t-online.de (AdaMagica)
Injection-Date: Sun, 10 Apr 2022 12:12:08 +0000
Content-Type: text/plain; charset="UTF-8"
 by: AdaMagica - Sun, 10 Apr 2022 12:12 UTC

Jeffrey R.Carter schrieb am Samstag, 9. April 2022 um 15:38:36 UTC+2:
> > There is no dialog with just one OK button. A work-around is using an empty string as a second button (it does not show prominently).
> Show_Message_Box does this, which is why the precondition on

Ah, thanks, I overlooked this feature.
Contrary to New_Button, this text does not observe HTML attributes. I had liked a bold or bigger title line.

Re: Ada_GUI

<t2ulov$il4$1@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=6820&group=comp.lang.ada#6820

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!paganini.bofh.team!news.freedyn.de!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: spam.jrc...@spam.acm.org.not (Jeffrey R.Carter)
Newsgroups: comp.lang.ada
Subject: Re: Ada_GUI
Date: Sun, 10 Apr 2022 15:23:43 +0200
Organization: A noiseless patient Spider
Lines: 12
Message-ID: <t2ulov$il4$1@dont-email.me>
References: <410d2d23-c6bd-4e09-b236-6905074fc684n@googlegroups.com>
<t2i5d7$c64$1@dont-email.me> <t2jf18$5pd$1@dont-email.me>
<f78d72ba-bbd3-4225-9d04-caafc2bdb84dn@googlegroups.com>
<t2kc6i$ad7$1@dont-email.me>
<e5f93d9a-43ab-4788-9356-f34fd0df0a47n@googlegroups.com>
<62751a49-706f-4f84-a2ed-8589a4a9c9d7n@googlegroups.com>
<t2ph0l$ur7$1@dont-email.me>
<b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>
<t2s28q$vm8$1@dont-email.me>
<87a9aa4e-99ac-4172-863e-c68019281286n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 10 Apr 2022 13:23:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="ea004372a4c1c48d2a2055e3dc2fda14";
logging-data="19108"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX193rjuOsxwaCvsKGCW6BsrqNneYFMTy6Zs="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.7.0
Cancel-Lock: sha1:h8WQgujxhFf0cX6Cg9V4Fpp4Po8=
In-Reply-To: <87a9aa4e-99ac-4172-863e-c68019281286n@googlegroups.com>
Content-Language: en-US
 by: Jeffrey R.Carter - Sun, 10 Apr 2022 13:23 UTC

On 2022-04-10 13:45, AdaMagica wrote:
>
> Now Ada.ico as set in Set_Up is shown on Windows 8.1/Firefox 99.0/Gnat CE 2021.

Glad to hear it.

--
Jeff Carter
"Ada has made you lazy and careless. You can write programs in C that
are just as safe by the simple application of super-human diligence."
E. Robert Tisdale
72


devel / comp.lang.ada / Re: Ada_GUI

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor