comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Which GUI framework ?
Date: Thu, 29 Oct 2020 15:45:09 -0500	[thread overview]
Message-ID: <rnf9km$fet$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: rnf4s8$e4g$1@gioia.aioe.org

"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> 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 


  reply	other threads:[~2020-10-29 20:45 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 [this message]
2020-10-30  9:38     ` DrPi
2020-10-30  9:37   ` DrPi
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