Thread overview
Working Windows GUI library?
Sep 03, 2015
Andre Polykanine
Sep 03, 2015
BBasile
Sep 03, 2015
Adam D. Ruppe
Sep 03, 2015
Andre Polykanine
Sep 03, 2015
jqb
Sep 04, 2015
thedeemon
Sep 04, 2015
Andre Polykanine
Sep 04, 2015
thedeemon
Sep 04, 2015
Jacob Carlborg
September 03, 2015
Hi everyone,
Does   anyone   of   you  work  with a Windows GUI library with native
controls in order to write desktop apps in D?
Here  is  why  I'm  asking:  actually, there are quite a number of GUI
libraries listed at wiki.dlang.org.
However, I have one specific requirement: the resulting apps should be
accessible  for blind and visually impaired users. To do that, Windows
native  controls are highly preferred since they are treated correctly
by  screen  reading  software.  So  no  QT,  no GTK (they are both not
accessible under Windows).
I've  tried  to  build  samples for each library, and got virtually no
results:  DGui was the only one that caused no problems at all, but it
has   almost   no   documentation   and   most   of  the  samples  are
drawing-related.
So  my  question  is:  is  there any reliable GUI library implementing
native Windows controls?
Thanks!


-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: @m_elensule; Facebook: menelion
My blog: http://menelion.oire.org/

September 03, 2015
On Thursday, 3 September 2015 at 15:46:28 UTC, Andre Polykanine wrote:
> [...]

Hello, there this one: https://github.com/nomad-software/tkd

> [...]

I don't know what you meant by 'accessible' but the two respective runtimes exist for windows.
September 03, 2015
On Thursday, 3 September 2015 at 16:49:51 UTC, BBasile wrote:
> I don't know what you meant by 'accessible'

Easily usable by the blind or people with motor difficulties and other similar challenges.
September 03, 2015
Hello Adam,

ADRvDdl> Easily usable by the blind or people with motor difficulties and ADRvDdl> other similar challenges.

Exactly, thank you.
I.e.,   the   app   should   be usable without mouse and with a screen
reader (to over-simplify the
things).

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: @m_elensule; Facebook: menelion
My blog: http://menelion.oire.org/


------------ Original message ------------
From: Adam D. Ruppe via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
To: digitalmars-d-learn@puremagic.com
Date created: , 7:56:52 PM
Subject: Working Windows GUI library?


      On Thursday, 3 September 2015 at 16:49:51 UTC, BBasile wrote:
> I don't know what you meant by 'accessible'

Easily usable by the blind or people with motor difficulties and other similar challenges.

September 03, 2015
On Thursday, 3 September 2015 at 16:49:51 UTC, BBasile wrote:
> [...]
> I don't know what you meant by 'accessible' [...]

https://en.wikipedia.org/wiki/Computer_accessibility

Accessibility is even more important than native language support.


September 04, 2015
On Thursday, 3 September 2015 at 15:46:28 UTC, Andre Polykanine wrote:
> So  my  question  is:  is  there any reliable GUI library implementing native Windows controls?

Yes, DFL!
https://github.com/Rayerd/dfl
It's a thin wrapper over WinAPI so all controls are native. I've built several apps with it and quite happy with this library. It comes with a graphical interface builder called Entice Designer which is rather old but still works fine. Also, with this lib your app is just a single binary less than 1 MB, no additional DLLs required.
September 04, 2015
On 2015-09-03 17:46, Andre Polykanine via Digitalmars-d-learn wrote:
> Hi everyone,
> Does   anyone   of   you  work  with a Windows GUI library with native
> controls in order to write desktop apps in D?
> Here  is  why  I'm  asking:  actually, there are quite a number of GUI
> libraries listed at wiki.dlang.org.
> However, I have one specific requirement: the resulting apps should be
> accessible  for blind and visually impaired users. To do that, Windows
> native  controls are highly preferred since they are treated correctly
> by  screen  reading  software.

DWT [1] uses native controls. Supports Windows and Linux. I have not tried the accessible features but I know it has some code for that.

All documentation for SWT should be applicable.

[1] https://github.com/d-widget-toolkit/dwt

-- 
/Jacob Carlborg
September 04, 2015
Hello thedeemon,

tvDdl> Yes, DFL!
tvDdl> https://github.com/Rayerd/dfl

Sounds  good.  but still... I can't find any examples or documentation :(

-- 
With best regards from Ukraine,
Andre
Skype: Francophile
Twitter: @m_elensule; Facebook: menelion
My blog: http://menelion.oire.org/


------------ Original message ------------
From: thedeemon via Digitalmars-d-learn <digitalmars-d-learn@puremagic.com>
To: digitalmars-d-learn@puremagic.com
Date created: , 9:30:34 AM
Subject: Working Windows GUI library?


      On Thursday, 3 September 2015 at 15:46:28 UTC, Andre Polykanine
wrote:
> So  my  question  is:  is  there any reliable GUI library implementing native Windows controls?

Yes, DFL!
https://github.com/Rayerd/dfl
It's a thin wrapper over WinAPI so all controls are native. I've
built several apps with it and quite happy with this library. It
comes with a graphical interface builder called Entice Designer
which is rather old but still works fine. Also, with this lib
your app is just a single binary less than 1 MB, no additional
DLLs required.

September 04, 2015
On Friday, 4 September 2015 at 13:54:25 UTC, Andre Polykanine wrote:
> Hello thedeemon,
>
> tvDdl> Yes, DFL!
> tvDdl> https://github.com/Rayerd/dfl
>
> Sounds  good.  but still... I can't find any examples or documentation :(

Here's some original docs and examples:
http://wiki.dprogramming.com/Dfl/Tutorial
http://wiki.dprogramming.com/Dfl/HomePage

Documentation is a bit scarce, but if you're familiar with WinForms (from .NET) you'll recognize everything immediately and will feel at home with DFL.

Here's a real world sample - an app I made for our clients:
https://bitbucket.org/thedeemon/autovideoenhance
For instance, a simple typical form (window) code:
https://bitbucket.org/thedeemon/autovideoenhance/src/b0259ca763577cb50169eaa7ee99f074da21724d/folderform.d?at=default
(most of the big setup code is generated by Entice Designer, not written manually)