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.1 required=5.0 tests=BAYES_00,FREEMAIL_FROM, PP_MIME_FAKE_ASCII_TEXT autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,2b786abb8057cec1 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 04 May 2005 21:02:52 -0500 From: "Steve" Newsgroups: comp.lang.ada References: Subject: Re: GtkAda on WinXP Date: Wed, 4 May 2005 19:05:27 -0700 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original Message-ID: NNTP-Posting-Host: 24.22.63.157 X-Trace: sv3-FJ90vO/sViDCATGt+l9wmp399ZujqHYRXn5ez3vKFAh9xtQyucmIRA9V2EaJti/2v6c9pd5aZGiGJly!ZZAnL22K6CoZnqtPv3mWUg2AkgNMzWKs7vQdddLRTHQG8lezwhPYhP0ImbZZ X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news1.google.com comp.lang.ada:10924 Date: 2005-05-04T19:05:27-07:00 List-Id: To get rid of the console window either feed gnat the argument: -largs -mwindows Or add the line: pragma Linker_Options( "-mwindows" ); To your source code. The same is true for GWindows, although it may already have the Linker_Options pragma in the sources. Regarding tasking, learn about Ada tasking. Once you get used to it, it's really nice. It's different from the "fork()" model of unix, and closer to the tasking model I have seen in a lot other operating systems over the years (only simpler and portable). Steve (The Duck) "Bart" wrote in message news:d5bt0c$8rj$1@news.ya.com... > Hello > > Im trying to learn GtkAda on Windows, i need it for a school proyect with > graphic interface and it must be on Windows. I looked at the tutorial and > hello world and I understad all very well, but I realized that its > impossible to close the black window, "console" or whatever you wanna call > it. It�s useful for text "put"s when debugging, but its really ugly when > the > program is done. I�ve seen some screenshots of GtkAda programs on linux > and > they don�t have the console window, but I can�t find any shot from a > Windows > machine. Even downloaded binaries (LinXtris) run with this irritating > windows. > - Is there any way to call Gtk.Main.Main closing that console??? > I�ve searched in google but there is no help about GtkAda, only the > "official" user guide > - Am I a horrible searcher or is that the only help avalible? > I saw some other libraries like GWindows or GNATWin. > - Do they allow to make only-graphic programs? > > And maybe this may be kind of weird but, is it possible to do something > like > C�s fork(); in ADA? I�ve thought that Gtk.Main could be ran from a "child > process"... I�ve been working much more time with C than with ADA, so i > still have ideas from C. > > Thanks for reading and a lot more for any answers. > >