From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.5-pre1 Path: eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!cleanfeed4-a.proxad.net!nnrp1-1.free.fr!not-for-mail Subject: Re: Which GUI framework ? Newsgroups: comp.lang.ada References: <5f9b0e8a$0$6476$426a34cc@news.free.fr> From: DrPi <314@drpi.fr> Date: Fri, 30 Oct 2020 10:38:01 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: fr Content-Transfer-Encoding: 8bit Message-ID: <5f9bdf00$0$4031$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 30 Oct 2020 10:38:08 CET NNTP-Posting-Host: 82.65.30.55 X-Trace: 1604050688 news-1.free.fr 4031 82.65.30.55:55606 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:60513 List-Id: Le 29/10/2020 à 21:45, Randy Brukardt a écrit : > "Dmitry A. Kazakov" wrote in message > news:rnf4s8$e4g$1@gioia.aioe.org... >> On 29/10/2020 19:48, DrPi wrote: >> >>> I'd like to create a PC (Windows) GUI program. This program needs to be >>> able to create many windows and tabs in one of them. A working thread >>> receive data from a serial line and send messages to the GUI to print >>> received content. >>> >>> I know the most common way is to use GtkAda. The problem is I'm a Ada >>> beginner and I never used Gkt. So, the effort is double. >>> >>> I have a quite good knowledge of wxWidgets since I use wxPython for >>> years. I thought I could use wxAda but is seems the project is dead. >>> >>> Any other binding to wxWidgets that I'm not aware of ? >> >> If that is only Windows (are you serious?), you do not need any. Simply >> use Windows GDI API directly. They are callable from Ada more or less out >> of the box because Windows handles all objects internally as graphic >> resources. >> >> There is Win32Ada thin bindings, but it is incomplete and most of the time >> you do not need it. > > For Win32, both Claw (www.rrsoftware.com) and GWindows provide thick Ada > bindings. Much easier to use than raw Win32. > > Randy. > Interresting. I'll have a look at them. Thanks. > > > >> >> The Microsoft's way of defining and using types is so idiotic that no >> reasonably usable thin Ada bindings are possible. I just declare an Ada >> counterpart new as appropriate with parameters of types I want in order to >> avoid casting types. >> >> In short, Windows GDI is ugly but it is native and task-safe. (GtkAda is >> neither) >> >> -- >> Regards, >> Dmitry A. Kazakov >> http://www.dmitry-kazakov.de > >