Re: [Gnoga-list] Replacing views results in a superposition instead

2023-10-08 Thread Blady via Gnoga-list
Hello Frank,

> Le 4 oct. 2023 à 18:51, Frank Hrebabetzky  a écrit :
> 
> I found a way: removing explicitly the form of the view (with the checkbox on 
> it) did the job. For that to work I had to replace the text written with 
> view.Put_Line with an element of Text_Type placed on the form.

Good to know.
Doing some tests, that's the most efficient way with Gnoga ;-).

> Nevertheless it seems strange to me that the elements on a form remain 
> visible after hiding the underlying view.

Gnoga relies on the underlying HTML entities and Javascript code.
Thus it may differ from one browser to the other.
If you can inspect displayed page with your browser then you can watch 
Javascript instructions coming from Gnoga in Javascript console and look at 
HTML changes.

Regards, 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] Replacing views results in a superposition instead

2023-10-04 Thread Frank Hrebabetzky
I found a way: removing explicitly the form of the view (with the 
checkbox on it) did the job. For that to work I had to replace the text 
written with view.Put_Line with an element of Text_Type placed on the form.


Nevertheless it seems strange to me that the elements on a form remain 
visible after hiding the underlying view.

--
Frank Hrebabetzky, Kronach  +49 / 9261 / 950 0565



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


[Gnoga-list] Replacing views results in a superposition instead

2023-10-01 Thread Frank Hrebabetzky

Hi,

I have a view with a checkbox. Upon clicking it I want to replace this 
view with a new one. I want the old one to disappear, but it doesn't, I 
see a superposition of both views, the GUI elements of the new view are 
printed over the old ones. The On_Click_Handler of the checkbox contains:


 view.Hidden;
 view.Finalize;
 view.Remove;
 view_new:= new Net.ViewG.View_Game;
 Net.ViewG.view2:= view_new;
 view_new.Dynamic;
 view_new.Create (window.all);

What else must I do?
--
Frank Hrebabetzky, Kronach  +49 / 9261 / 950 0565



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