Re: [Gnoga-list] Modal dialog box

2017-05-16 Thread Jeremiah Breeden
So after trying a bunch of implementations, I am leaning towards the following: Gnoga.Gui.Modal_Dialog.ads ** with Gnoga.Gui.Window; with Gnoga.Types.Colors; with Gnoga.Gui.View; package Gnoga.Gui.Modal_Dialog is type Dialog_Type is

Re: [Gnoga-list] Modal dialog box

2017-05-16 Thread Jeremiah Breeden
Yeah, Ada doesn't have a good method of preventing overriding of methods. I made the one version private, but forgot that derived types can still override them. I wish Ada had a way to mark procedures as final. Out of the two options you mentioned, I think #2 is probably better, but you want to

Re: [Gnoga-list] Experience with Amazon Web Services ?

2017-05-16 Thread Jeffrey R. Carter
On 04/06/2017 07:08 PM, Gautier de Montmollin wrote: > You can have a glimpse there: > http://52.202.48.80:8080/ > > The address is temporary. You'll see that the game is in a very "drafty" > shape. > As expected there are some visual latency issues in the animations, > should be fixed soon. >

[Gnoga-list] Simple edit box ?

2017-05-16 Thread Gautier de Montmollin
Hello, Is there somewhere a simple edit box, which is *not* a web form: that is, just a box where you can edit a text, that does not redirect to another web page when the Enter key is pressed. TIA Gautier -- Check

Re: [Gnoga-list] Simple edit box ?

2017-05-16 Thread Gautier de Montmollin
Ok, got it: cf the chattanooga demo, search "Friend's e-mail" and code around it. The key is to prevent the web-like form submission by setting the appropriate handler: App.Friend_Form.On_Submit_Handler (Handler => On_Add'Access); From: Gautier de Montmollin

Re: [Gnoga-list] Modal dialog box

2017-05-16 Thread Gautier de Montmollin
There is a small banana skin with the Create method: when I try to extend Gnoga.Gui.View.Modal_Dialog.Dialog_Type for containing its own buttons and other elements, like this: type Custom_Modal_Type is new Gnoga.Gui.View.Modal_Dialog.Dialog_Type with record Hide_Dlg_Bttn :

Re: [Gnoga-list] Modal dialog box

2017-05-16 Thread Gautier de Montmollin
It looks very good. I'll test it with input boxes and so on... For making the testing easy for others, I've put a few lines around your test code so they can just compile it "out of the box" - just add "modal.adb" in test.gpr. Gautier Your daily