comp.lang.ada
 help / color / mirror / Atom feed
From: "Jeffrey R.Carter" <spam.jrcarter.not@spam.acm.org.not>
Subject: Re: Ada_GUI
Date: Sat, 9 Apr 2022 15:38:34 +0200	[thread overview]
Message-ID: <t2s28q$vm8$1@dont-email.me> (raw)
In-Reply-To: <b1cf1fbb-bc7a-46dd-9289-bd67fd579f46n@googlegroups.com>

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

  reply	other threads:[~2022-04-09 13:38 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-05 16:26 Ada_GUI AdaMagica
2022-04-05 19:30 ` Ada_GUI Jeffrey R.Carter
2022-04-06  7:21   ` Ada_GUI Jeffrey R.Carter
2022-04-06 15:29     ` Ada_GUI AdaMagica
2022-04-06 15:38       ` Ada_GUI Jeffrey R.Carter
2022-04-06 15:52         ` Ada_GUI AdaMagica
2022-04-08 14:05           ` Ada_GUI AdaMagica
2022-04-08 14:31             ` Ada_GUI Jeffrey R.Carter
2022-04-08 20:56               ` Ada_GUI Jeffrey R.Carter
2022-04-09 11:59               ` Ada_GUI AdaMagica
2022-04-09 13:38                 ` Jeffrey R.Carter [this message]
2022-04-10 11:45                   ` Ada_GUI AdaMagica
2022-04-10 13:23                     ` Ada_GUI Jeffrey R.Carter
2022-04-10 12:12                   ` Ada_GUI AdaMagica
2022-04-06 15:31     ` Ada_GUI Jeffrey R.Carter
  -- strict thread matches above, loose matches on Subject: below --
2010-12-30 14:27 ada gui Robin
2010-12-30 19:54 ` Randy Brukardt
2010-12-31  8:11   ` Robin
2005-07-29  9:25 ada & gui Szymon Guz
2005-07-29 11:10 ` Ludovic Brenta
2005-07-29 11:43   ` Szymon Guz
2005-07-29 12:40     ` Alex R. Mosteo
2005-07-29 12:52       ` Szymon Guz
2005-07-29 13:16         ` Alex R. Mosteo
2005-07-29 13:58           ` Ludovic Brenta
2005-07-29 16:51           ` Simon Wright
2005-07-30  1:27             ` John B. Matthews
2005-07-30 10:21               ` Georg Bauhaus
2005-07-30 16:27                 ` John B. Matthews
2005-07-30 20:30               ` Simon Wright
2005-08-01  0:02                 ` John B. Matthews
2005-08-01 13:32               ` Marc A. Criley
2005-08-01 18:49                 ` Jeffrey Carter
2005-07-29 13:19         ` Ludovic Brenta
2005-07-29 14:12   ` Szymon Guz
2005-07-29 14:27     ` Ludovic Brenta
2005-07-29 14:27     ` Alex R. Mosteo
2005-07-29 11:28 ` Jeff Creem
2005-07-29 12:23   ` Szymon Guz
2005-07-29 13:27     ` Ludovic Brenta
2005-07-29 13:59       ` Szymon Guz
2005-07-29 14:20         ` Ludovic Brenta
2005-07-29 11:33 ` Martin Dowie
2005-07-29 14:59   ` Jacob Sparre Andersen
2005-07-29 12:31 ` Adrien Plisson
2005-08-02 16:11 ` Lucretia
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox