From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.141.70 with SMTP id rm6mr46868101pab.37.1412170281950; Wed, 01 Oct 2014 06:31:21 -0700 (PDT) X-Received: by 10.140.80.210 with SMTP id c76mr14696qgd.18.1412170281892; Wed, 01 Oct 2014 06:31:21 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!h18no166799igc.0!news-out.google.com!i10ni55qaf.0!nntp.google.com!dc16no258616qab.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 1 Oct 2014 06:31:20 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.250.123.221; posting-account=yiWntAoAAAC1KqC_shmxJYv07B9l6LNU NNTP-Posting-Host: 50.250.123.221 References: <07383010-822f-4732-bb11-273f8876f4c7@googlegroups.com> <68a3d345-f716-465b-b740-4944a035fbc4@googlegroups.com> <_vHWv.296198$Q61.62547@fx13.iad> <36b0981f-d927-4255-a292-f119172e379d@googlegroups.com> <08c241d6-050d-41e7-80d1-1ff9687bea1a@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <23555c8e-1746-4db4-ac07-ff0a6f9c0873@googlegroups.com> Subject: Re: Gnoga - The GNU Omnificent GUI for Ada From: David Botton Injection-Date: Wed, 01 Oct 2014 13:31:21 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:189275 Date: 2014-10-01T06:31:20-07:00 List-Id: > Is there a GUI tutorial coming soon Everything so far are GUI tutorials, but I think you want something that lo= oks closer to a VB setup >, I am very interested in making views appear and disappear with button pr= esses, data be updated in labels on the screen etc. and also for positionin= g of widgets etc. The next tutorial on forms will I am sure be what you are looking for. I ho= pe to have time to do it today. I've been working on binding some remaining= parts, for example last night I added the ability to create autocomplete l= ists for inputs and fieldsets for group form elements. The example will show you how to create and interact with form elements, et= c. As for more about positioning, I think a full tutorial on that alone is ver= y called for and will add it to the list now and see if I can skip ahead an= d do that sooner rather than later. In the mean time, to "manually" position anything anywhere, after creating = your element do: My_Button.Position (Fixed); My_Button.Top (10); My_Button.Left (10); One you change the Position system to Fixed you can then place an element a= ny place you want. The default is Position (Static). Which means elements are added on after a= nother at the bottom of the view as you add them. If they are block element= s they take an entire row, if inline they are placed one after another from= left to right. You can change the default Display of an element to be inline or block usin= g: My_Element.Display (block); or My_Element.Display (inline); I realize this may be too much info for now :) I am adding View types that = allow for all sorts of automatic positioning, columns, etc. in the near fut= ure. When I get the positioning tutorial done it will all make more sense and ca= n see how simple it can be. As for hiding and displaying Views. Views are like any other element and ca= n be placed in to other Views, styled, etc. The default create does make it= resize and take up the entire window if the window is the parent. So given= that you can have many views ( or any element) and display and hide each a= s desired using: My_View_or_Element.Hidden; or My_View_or_Element.Hidden (False); This will make an element be completely hidden from view and take no space = on the page. or My_View_or_Element.Visible (False); or My_View_or_Element.Visible); This will make an element not be visible but it will still take up the same= space it did before on page. I'll make sure there are examples of all the above in coming tutorials. David Botton