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!aioe.org!.POSTED.QnTRC4x3WOQxzaUUaj2zKA.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Which GUI framework ? Date: Thu, 29 Oct 2020 20:23:55 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <5f9b0e8a$0$6476$426a34cc@news.free.fr> NNTP-Posting-Host: QnTRC4x3WOQxzaUUaj2zKA.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:60505 List-Id: 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. 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