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!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Which GUI framework ? Date: Thu, 29 Oct 2020 15:45:09 -0500 Organization: JSA Research & Innovation Message-ID: References: <5f9b0e8a$0$6476$426a34cc@news.free.fr> Injection-Date: Thu, 29 Oct 2020 20:45:10 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="15837"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:60506 List-Id: "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. > > 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