comp.lang.ada
 help / color / mirror / Atom feed
From: DrPi <314@drpi.fr>
Subject: Re: Which GUI framework ?
Date: Fri, 30 Oct 2020 10:37:13 +0100	[thread overview]
Message-ID: <5f9bded0$0$4031$426a74cc@news.free.fr> (raw)
In-Reply-To: <rnf4s8$e4g$1@gioia.aioe.org>


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.

  parent reply	other threads:[~2020-10-30  9:37 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-29 18:48 Which GUI framework ? DrPi
2020-10-29 19:23 ` Dmitry A. Kazakov
2020-10-29 20:45   ` Randy Brukardt
2020-10-30  9:38     ` DrPi
2020-10-30  9:37   ` DrPi [this message]
2020-10-30  9:54     ` Dmitry A. Kazakov
2020-10-30 11:36       ` Chris M Moore
2020-10-31 10:58         ` DrPi
2020-10-30 12:31     ` Jeffrey R. Carter
2020-10-31 11:20       ` DrPi
2020-10-30  9:52 ` Luke A. Guest
2020-10-31 11:14   ` DrPi
2020-10-31 14:03     ` Luke A. Guest
2020-10-31 16:30       ` DrPi
2020-10-31 16:35         ` Luke A. Guest
2020-10-31 17:48           ` DrPi
2020-11-11  1:43 ` Azathoth Hastur
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox