This unofficial project for D2.x is a migration of D Forms Library (DFL) that is managed on SVN. DFL is a Win32 windowing library for the D programming language.
Find a file
2024-06-06 22:59:58 +09:00
.vscode Add dscanner.ignoredKey 2023-12-29 20:12:43 +09:00
examples Update Common dialogs example 2024-06-01 13:49:13 +09:00
lib DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
source/dfl Clean up 2024-06-01 13:39:42 +09:00
.gitignore Update .gitignore 2023-01-24 10:52:46 +09:00
_cmd.bat DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
dfl.code-workspace FIX: TextBox is not accepted RETURN and TAB correctly in form that has default button. 2022-12-24 10:58:18 +09:00
dub.json Use "silly" library for unittest 2023-02-02 16:57:41 +09:00
dubclean.ps1 Add dubclean.ps1 for remove intermediate files. 2023-01-19 10:45:10 +09:00
go.bat DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
go32omf.bat.lnk DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
go64.bat.lnk DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
lgpl.txt DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
license.txt DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
makecoff.bat Add dfl.chart module with TableRenderer class and its example 2024-03-31 22:41:38 +09:00
makelib.bat Add dfl.chart module with TableRenderer class and its example 2024-03-31 22:41:38 +09:00
makelibtango.bat DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00
README.md Update README.md 2024-06-06 22:59:58 +09:00
zlib.txt DUB is available in DFL. (Caution: need to modify DFL source path in sc.ini) 2022-12-07 19:06:31 +09:00

DFL

This unofficial project is a migration of D Forms Library (DFL) that is managed on SVN. DFL is a Win32 windowing library for the D language.

Recent major features

  • Registered DFL to DUB.
  • Support multiple screens.
  • Module "dfl.chart" is now comming.
    • TableRenderer (with example)
    • LineGraphRenderer (with example)
    • TimeChartRenderer (with example)
  • Module "dfl.printing" is now comming.
    • PrintDialog
    • PrintSetupDialog
    • PrintPreviewDialog
  • Remove dflexe.
  • Remove GTK-based DFL.
  • Remove some bundled libraries such as user32_dfl.lib etc... (From now on, use dmd-bundled libraries such as the MinGW platform library and so on.)

Screen shots

screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot screen shot

Usage

First, you make new DUB project:

> cd examples\new_project
> dub init

Add DFL to local DUB registry:

> dub add dfl
> dub list
Packages present in the system and known to dub:
  dfl 0.10.0: c:\your\path\dfl\0.10.0\dfl\
  silly 1.2.0-dev.2: c:\your\path\silly\1.2.0-dev.2\silly\
  undead 1.1.8: c:\your\path\undead\1.1.8\undead\

Build and run your GUI applications with DUB as below:

> dub build -a=x86_64
> dub run

IMPORTANT: DUB is building dfl_dub.lib that is not containing undead.lib and WINSDK libraries.

APPENDIX: Build and Install dfl.lib and dfl_debug.lib

1. Set environment variables

Fix the paths below:

set dmd_path=c:\d\dmd2\windows
set dmc_path=c:\dmc\dm

2. Install the undeaD library

DFL is required the undeaD library (undead.lib). Download a ZIP file from https://github.com/dlang/undead. Extract undeaD-master.zip and run the below with either option -a=x86_omf, -a=x86_32mscoff or -a=x86_64:

> cd undeaD-master
> dub build -a=x86_omf
    Starting Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86, x86_omf.
  Up-to-date undead ~master: target for configuration [library] is up to date.
> dir bin /b
undead.lib

Copy the undead.lib to your/lib/dir.

3. Make dfl.lib and dfl_debug.lib

Run makelib.bat:

> cd dfl/win32/dfl
> makelib.bat 32omf     # 32-bit omf

or (MSVC required)

> makelib.bat           # 32-bit mscoff

or (MSVC required)

> makelib.bat 32mscoff  # ditto

or (MSVC required)

> makelib.bat 64        # 64-bit mscoff

Also copy dfl.lib and dfl_debug.lib to your/lib/dir.

IMPORTANT: Both library files are containing the undead.lib and WINSDK libraries such as user32.lib, gdi32.lib and so on.

In order to make and move *.lib to paths below:

  • go32omf.bat : Make and move *.lib to %dmd_path%\lib
  • go.bat (MSVC required) : Make and move *.lib to %dmd_path%\lib32mscoff
  • go.bat 32mscoff (MSVC required) : ditto
  • go64.bat (MSVC required) : Make and move *.lib to %dmd_path%\lib64

License

DFL is under the boost and/or zlib/libpng license.

However, trackbar.d is covered by the MIT license.