comp.lang.ada
 help / color / mirror / Atom feed
* Launching Popup Windows in Gnoga
@ 2014-10-20 12:56 Jeremiah
  2014-10-20 13:38 ` David Botton
  2014-10-20 15:22 ` David Botton
  0 siblings, 2 replies; 16+ messages in thread
From: Jeremiah @ 2014-10-20 12:56 UTC (permalink / raw)


I've been slowly working through the tutorials as I have time.  More recently I have been playing with the material from the Popup window.  Spending some more time of my own with it in my own programs has brought up some questions.  Keep in mind, I am initially working in a Singleton environment (my needs lie there for my first project coming up).  I do plan on multi_connect later as well, but I want to focus on learning the environment under Singleton, since that applies more to what I need to do at this time.

1.  In the tutorial (I think it is Tutorial 6), the program calls Launch to launch the window and the delays some time to allow it to come up before adding elements to it (views, buttons, etc.).  This seems ok at first but when I try it on various windows boxes, sometimes the delays are too short and sometimes they are fine.  I could always increase the delay time, but from a user perspective this could be annoying and I can never really control how long it takes to spawn a window.  If I miss the timing, the window comes up blank (elements aren't added??).  Is there a better way to catch when it is ok to add elements to the window so they appear?  I am guessing an event, but the couple I have tried so far didn't quite do it yet.  The delay method, while quick and effective for a tutorial, isn't quite solid enough for a desktop application that I am planning.

2.  Is there a way to relaunch a window?  If I call Launch more than once, I get an error indicating the item is already created.  I don't need to recreate the window, but simply show it again.  This would be helpful if I want to maintain a data state associated to the window.  Currently, once the event that spawned my window is over, I lose all state.  I can work around this by passing in objects, but I was wanting to see if the window was relaunchable / reshowable so I could easily control when/how its GUI elements were destroyed.

3.  This is related to #2, but is there a way to create elements well enough so I can do things like attach other elements or callbacks to them but separately control when they show on the screen?  This is more a "trying" to understand how it works thing, but also with some of the timing considerations mentioned above, being able to control when I "setup" an element vs. when I view it would be very nice (at least in windows where I have to deal with various OS / Program delays that I cannot control.

This is more for the author if he sees this, but anyone can comment:
4.  Will there eventually be some more documentation on what each method and parameter are for?  I don't mind exploring/playing and I understand Gnoga isn't even officially released, but I know in the future, being better able to understand how each component works would be useful.  I am assuming I have more trouble because I don't do web development, so the concepts are either foreign to me or different from what I am used to in a normal windows GUI environment.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-10-22 15:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-20 12:56 Launching Popup Windows in Gnoga Jeremiah
2014-10-20 13:38 ` David Botton
2014-10-20 15:22 ` David Botton
2014-10-20 22:01   ` Jeremiah
2014-10-20 22:30     ` David Botton
2014-10-20 23:07       ` Jeremiah
2014-10-21  0:21         ` David Botton
2014-10-21  0:27           ` David Botton
2014-10-21  1:27             ` David Botton
2014-10-21  2:06               ` jeremiah.breeden
2014-10-21 11:24               ` David Botton
2014-10-22  1:56                 ` Jeremiah
2014-10-22  2:09                   ` David Botton
2014-10-22  2:57                     ` Jeremiah
2014-10-22 15:24                       ` David Botton
2014-10-21  2:03           ` Jeremiah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox