From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "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 Message-ID: References: <410d2d23-c6bd-4e09-b236-6905074fc684n@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: 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: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63724 List-Id: 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 "
", but I suspect button text is a single line. I'll look into this at some point. > Displaying "€" 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