News for hackers. Stuff that matters.
Re:IUP – Cross platform C GUI library by tored on Thursday May 25, 2023 @04:19AM (#36068258)
One big plus for IUP over wxWidgets is that API of IUP is very clean & easy to use compared to the complex C++ API of wxWidgets.
Re:IUP – Cross platform C GUI library by rhdunn on Thursday May 25, 2023 @04:29AM (#36068316)
wxWidgets feels heavily inspired by Microsoft's MFC framework. That always felt clunky to me, compared to GUI toolkits like Qt and GTK.
Re:IUP – Cross platform C GUI library by VZ on Thursday May 25, 2023 @07:46AM (#36069510)
This was indeed the case. In 1995. Since then just about everything has changed, but the idea that wxWidgets is MFC-like still refuses to die... Another common related opinion is that you have to use macros when using wxWidgets, which couldn't be further from truth since ~15 years (see https://wxwidgets.org/blog/2023/05/are-macros-required-to-us...) but, again, old impressions linger.
Re:IUP – Cross platform C GUI library by sirwhinesalot on Thursday May 25, 2023 @10:40AM (#36071313)
I still find examples using the macros all over the place. It is unfortunate that is still the case...
Re:IUP – Cross platform C GUI library by rhdunn on Friday May 26, 2023 @03:03AM (#36080963)
Macros aren't the only thing that make wxWidgets like MFC. Things like using new but not delete on objects. The method and event names. The use of DCs in paint events. Etc.
Re:IUP – Cross platform C GUI library by VZ on Friday May 26, 2023 @08:05AM (#36083005)
Well, there is only so much latitude for naming the event (or message, callback, whatever) sent when a window needs to repaint itself. Qt has `paintEvent()` too and nobody calls it MFC-like AFAIK. IME people mostly think about event table macros when they say it.