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?
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.
You're right, I deleted the cash and favicon is gone - but Ada.ico does not appear.More strange behaviour: I replaced it by my own Ada.ico - drum roll: favicon is still there.Browsers cache things.
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.
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.
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
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.
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.
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.Have you cleared cache between displaying favicon.ico and trying with Ada.ico?
Very strange.
Have you tried renaming Ada.ico to favicon.ico?
Does your boot.html contain the string "favicon.ico"?
I will update Github with the correction soon
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.
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 "€" 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.
But don't worry. I'm just playing around - no real application.
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?
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
Now Ada.ico as set in Set_Up is shown on Windows 8.1/Firefox 99.0/Gnat CE 2021.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:01:01 |
Calls: | 8,141 |
Calls today: | 4 |
Files: | 13,085 |
Messages: | 5,857,792 |