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!cleanfeed3-a.proxad.net!nnrp1-1.free.fr!not-for-mail Newsgroups: comp.lang.ada References: <5f9b0e8a$0$6476$426a34cc@news.free.fr> From: DrPi <314@drpi.fr> Subject: Re: Which GUI framework ? Date: Fri, 30 Oct 2020 10:37:13 +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: en-US Content-Transfer-Encoding: 8bit Message-ID: <5f9bded0$0$4031$426a74cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 30 Oct 2020 10:37:20 CET NNTP-Posting-Host: 82.65.30.55 X-Trace: 1604050640 news-1.free.fr 4031 82.65.30.55:55606 X-Complaints-To: abuse@proxad.net Xref: reader02.eternal-september.org comp.lang.ada:60512 List-Id: Le 29/10/2020 à 20:23, Dmitry A. Kazakov a écrit : > 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?), Did I say that ? ;) I currently do my dev on a Windows machine but a cross-platform framework is welcome. 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) > Windows GDI... I used it long time ago. Not my best memory.