March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Gary Willoughby | 24.03.2014 13:04, Gary Willoughby пишет: > On Sunday, 23 March 2014 at 20:04:00 UTC, Jeroen Bollen wrote: >> The main problem I have with GTK is that it's a mess to setup on >> Windows for the end user. > > The only real problem is the actual installation of GTK onto the Windows > user's machine as some people ask "why do i need to install this weird > GTK thing for this app to work?". But... you can 'hide' the installation > of GTK on Windows as part of the main application's installer because > the Windows version of GTK has a silent install options. > > http://gtk-win.sourceforge.net/home/index.php/Main/EmbeddingGTK Note different programs may require different GTK versions and GTK isn't backward compatible on Windows because of some bugs (e.g. 2.16 is the last one with working OpenGL using GtkGLExt from 2.x), so it's usually just copied in application's folder. -- Денис В. Шеломовский Denis V. Shelomovskij |
March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Denis Shelomovskij | On Sunday, 23 March 2014 at 19:56:47 UTC, Denis Shelomovskij wrote: > First, I don't understand what is the problem with GTK? I looks ugly on both Windows and Mac OS X. It's also an extra dependency. > Also there is DWT, but I already have spent some time on it and I'd like to suggest to not use it as its sources is a mess. What's wrong with DWT? > As for cross-platform GUI app, I'd suggest to use own native GUI library for every platform as it looks like an easiest and the most convenient for the user of your program approach. I think it's good to have a cross-platform GUI for the basic stuff that's available on all platforms. Like buttons, windows and so on. Then use the native GUI when platform specific widgets are needed. > The problem is it's too common to connect application login and GUI, so for my personal purposes I created MetaUI [1] which allow such intermediate layer and you only create native GUI elements, place it somewhere and connect with logic elements from MetaUI, see examples. As a native GUI I use GTK (mainly my own fast, correct and very usable bindings [2]) over MetaUI for now, but when I will have more time I will use DGui on Windows just to decrease program installation size. > The only problem is a Mac OS X for which I don't know working GUI library (I don't target it for now, GTK may work but with PITA) On OS X, anything that's not native Cocoa is not acceptable. -- /Jacob Carlborg |
March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jeroen Bollen | On Sunday, 23 March 2014 at 12:34:10 UTC, Jeroen Bollen wrote: > Are there any tools to do this at all in Digitalmars D? All current libraries seem to be outdated, but GTKD. GTK on it's end is a pain to bundle which is enough to not consider it cross platform at all. DWT [1] is a native cross-platform GUI for Windows and Linux (OS X is being worked on). It's a port of the Java library SWT [2]. It doesn't have any dependencies except for the system libraries. On Linux GTK+ is used. [1] https://github.com/d-widget-toolkit/dwt [2] http://www.eclipse.org/swt/ -- /Jacob Carlborg |
March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Monday, 24 March 2014 at 12:06:25 UTC, Jacob Carlborg wrote:
> On OS X, anything that's not native Cocoa is not acceptable.
Ableton Live does not look like Cocoa, but is the most popular sequencer on OS-X.
|
March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On Monday, 24 March 2014 at 12:42:46 UTC, Ola Fosheim Grøstad wrote:
> On Monday, 24 March 2014 at 12:06:25 UTC, Jacob Carlborg wrote:
>> On OS X, anything that's not native Cocoa is not acceptable.
>
> Ableton Live does not look like Cocoa, but is the most popular sequencer on OS-X.
Ableton is the sort of program that you make fullscreen and then work fully inside of. You don't interact with the OS GUIs much. Most applications use a bit more integration.
|
March 24, 2014 Re: Cross Platform GUI Development | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ola Fosheim Grøstad | On 24/03/14 13:42, "Ola Fosheim Grøstad" <ola.fosheim.grostad+dlang@gmail.com>" wrote: > Ableton Live does not look like Cocoa, but is the most popular sequencer > on OS-X. I was mostly referring to GTK+ not being acceptable. -- /Jacob Carlborg |
Copyright © 1999-2021 by the D Language Foundation