Re: [Gnoga-list] Gnoga V1.6 release date?

2021-02-10 Thread Jeffrey R. Carter via Gnoga-list
Getting rid of anonymous access types is always a good idea. Your fix for the 
1st problem seems good to me.

The Chattanooga problem still seems like a compiler error to me. I don't see 
any work-around. Unless it is reported I doubt if it will be corrected. 

⁣--
Jeff Carter
"Now go away or I shall taunt you a second time."
Monty Python and the Holy Grail​

On Feb 10, 2021, 21:15, at 21:15, Blady via Gnoga-list 
 wrote:
>Hello,
>
>Since Gnoga V1.6-beta announcement
>(https://sourceforge.net/p/gnoga/mailman/message/37121840/) I haven't
>receive any Windows or Linux test report :-(
>
>On my side testing with macOS, i'm facing two tough issues:
>
>1) PROGRAM_ERROR : accessibility check failed, see on list
>(https://sourceforge.net/p/gnoga/mailman/message/37090637/).
>I've just push a rough fix that suppress the PROGRAM-ERROR.
>However I'm not really sure it is the correct fix:
>https://sourceforge.net/p/gnoga/code/ci/7aeba1a99172352534d3398f84d7ebf9ee1ad155/
>Give me your feedback. 
>
>2) On_Connect_Submit: raised PROGRAM_ERROR : s-taprob.adb:182 explicit
>raise
>2021-02-10 20:46:09.30 : On_Connect_Submit: raised PROGRAM_ERROR :
>s-taprob.adb:182 explicit raise
>Call stack traceback locations:
>system__tasking__protected_objects__lock_read_only (in chattanooga) +
>182
>chattanooga__db__control__existsP (in chattanooga)
>(chattanooga-db.adb:92)
>chattanooga__db__exists (in chattanooga) (chattanooga-db.adb:37)
>chattanooga__ui__on_connect_submit (in chattanooga)
>(chattanooga-ui.adb:205)
>gnoga__gui__base__fire_on_submit (in chattanooga)
>(gnoga-gui-base.adb:1042)
>gnoga__gui__base__on_message (in chattanooga) (gnoga-gui-base.adb:2006)
>gnoga__server__connection__dispatch_task_typeTB (in chattanooga)
>(gnoga-server-connection.adb:1812)
>system__tasking__stages__task_wrapper (in chattanooga) + 473
>
>It was working well with GNAT 2019.
>Jeff said:
>"So the task making the callback is running at Default_Priority, the PO
>has a much higher ceiling priority, and you're getting an exception due
>to a check for a ceiling violation. That's very odd indeed. If so, then
>I would think you should report this to AdaCore."
>Unfortunately, I couldn't be able to make a simple reproducer in order
>to report to AdaCore.
>Any ideas are welcome.
>
>The V1.6 changes are:
>
>- Gnoga: adaptation to PIXI 5.3.0.
>- Gnoga: adaptation to GNAT Community 2020.
>- Upgrade to PIXI 5.3.0.
>- Upgrade to ACE 1.4.12.
>- Upgrade to Simple Components 4.50.
>- Update Jeff Carter's Pragmarc from Github.
>- Gnoga: adaptation to GNAT Community 2020.
>- JQuery Javascript source upgrade version 3.5.0.
>- Add experimental package UXStrings (see readme).
>- Demo: add a simple localization tool (Localize) to help edition of
>localization files.
>- Form: add additional support for file input with multiple files.
>Change some API.
>- Add support for files upload (implementing Javascript FileReader).
>- Form: add support for file and tel field types. Fix UTF8 character
>conversions in form names.
>
>Is this version reliable enough?
>Tell on the list if you agree to release 1.6 as it is.
>
>Thanks, Pascal.
>https://blady.pagesperso-orange.fr
>
>
>
>
>___
>Gnoga-list mailing list
>Gnoga-list@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/gnoga-list



___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


[Gnoga-list] Gnoga V1.6 release date?

2021-02-10 Thread Blady via Gnoga-list
Hello,

Since Gnoga V1.6-beta announcement 
(https://sourceforge.net/p/gnoga/mailman/message/37121840/) I haven't receive 
any Windows or Linux test report :-(

On my side testing with macOS, i'm facing two tough issues:

 1) PROGRAM_ERROR : accessibility check failed, see on list 
(https://sourceforge.net/p/gnoga/mailman/message/37090637/).
I've just push a rough fix that suppress the PROGRAM-ERROR.
However I'm not really sure it is the correct fix: 
https://sourceforge.net/p/gnoga/code/ci/7aeba1a99172352534d3398f84d7ebf9ee1ad155/
Give me your feedback. 

2) On_Connect_Submit: raised PROGRAM_ERROR : s-taprob.adb:182 explicit raise
2021-02-10 20:46:09.30 : On_Connect_Submit: raised PROGRAM_ERROR : 
s-taprob.adb:182 explicit raise
Call stack traceback locations:
system__tasking__protected_objects__lock_read_only (in chattanooga) + 182
chattanooga__db__control__existsP (in chattanooga) (chattanooga-db.adb:92)
chattanooga__db__exists (in chattanooga) (chattanooga-db.adb:37)
chattanooga__ui__on_connect_submit (in chattanooga) (chattanooga-ui.adb:205)
gnoga__gui__base__fire_on_submit (in chattanooga) (gnoga-gui-base.adb:1042)
gnoga__gui__base__on_message (in chattanooga) (gnoga-gui-base.adb:2006)
gnoga__server__connection__dispatch_task_typeTB (in chattanooga) 
(gnoga-server-connection.adb:1812)
system__tasking__stages__task_wrapper (in chattanooga) + 473

It was working well with GNAT 2019.
Jeff said:
"So the task making the callback is running at Default_Priority, the PO has a 
much higher ceiling priority, and you're getting an exception due to a check 
for a ceiling violation. That's very odd indeed. If so, then I would think you 
should report this to AdaCore."
Unfortunately, I couldn't be able to make a simple reproducer in order to 
report to AdaCore.
Any ideas are welcome.

The V1.6 changes are:

- Gnoga: adaptation to PIXI 5.3.0.
- Gnoga: adaptation to GNAT Community 2020.
- Upgrade to PIXI 5.3.0.
- Upgrade to ACE 1.4.12.
- Upgrade to Simple Components 4.50.
- Update Jeff Carter's Pragmarc from Github.
- Gnoga: adaptation to GNAT Community 2020.
- JQuery Javascript source upgrade version 3.5.0.
- Add experimental package UXStrings (see readme).
- Demo: add a simple localization tool (Localize) to help edition of 
localization files.
- Form: add additional support for file input with multiple files. Change some 
API.
- Add support for files upload (implementing Javascript FileReader).
- Form: add support for file and tel field types. Fix UTF8 character 
conversions in form names.

Is this version reliable enough?
Tell on the list if you agree to release 1.6 as it is.

Thanks, Pascal.
https://blady.pagesperso-orange.fr




___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list


Re: [Gnoga-list] Referencing dynamically created items by ID.

2021-02-10 Thread Blady via Gnoga-list

> Le 9 févr. 2021 à 16:12, Joey Fish  a écrit :
> 
> Ok, so I’m having a little problem getting information from a 
> dynamically-created element for a reporting-system I am building. – It works 
> by having a draggable DIV containing elements/values the user wishes to 
> report, dragging it to a specified area on the form, and then populating the 
> form with elements set to the appropriate values. – This works well and 
> straightforward for the case where the data is statically known, because I 
> can put that element in a record-field, but not so much when the elements are 
> generated via dynamic methods (INI-file in this particular case).*
> 
> HTML elements in play:
> (1) The FORM element;
> (2) The DIV containing the elements of a report;
> (3) The SELECTs populated by the INI-file’s data;
> (4) The DIV containing the FORM elements to submit.
> Note: the DIV in #2 is not part of the FORM, but rather a template the user 
> completes and then is processed by the drag-event handler to add 
> form-elements to the form.
> 
> So, what is the best way to obtain a Gnoga element from a given ID?
> * I could initialize a vector to hold the elements when they are generated, 
> but it seems like there should be a method to query the view for a 
> child-element of given ID.

Hello Joey,

See Tips #11 on Gnoga wiki:
https://sourceforge.net/p/gnoga/wiki/Gnoga-Home
• How do I get a hold on a child element, on the gnoga side, knowing 
its ID?
My_Button.Attach_Using_Parent (View, ID => "my_button");

See a simple example:
https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/tutorial/tutorial-04/tutorial_04.adb#l123

A more complex example:
https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/demo/adablog/adablog-view.adb#l44
https://sourceforge.net/p/gnoga/code/ci/dev_1.5/tree/demo/adablog/adablog-controller.adb#l38

HTH, Pascal.
https://blady.pagesperso-orange.fr



___
Gnoga-list mailing list
Gnoga-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gnoga-list