Thread overview | ||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
August 13, 2005 DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to D language. Most DWT APIs is SWT compliant. (SWT 3.02 port) Download Source code here : http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar Binary Example : http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe More Example and Screenshorts http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png http://svn.dsource.org/projects/dwt/downloads/examples/ Forum on DSource http://www.dsource.org/forums/viewforum.php?f=1 version 0.3: --------------------------------------------------------------- 1) adjust the directory structure, more like DFL. 2) Some bugs fixed 3) clumsy Callback removed, implemented in other way. 4) Image support : gif jpg png winbmp winicon 5) Both UNICODE and ANSI version supported. default to UNICODE version, use -version=ANSI to override, recommend to use UNICODE TCHAR is aliased to char/wchar depends on the version ident you set, default to wchar since default version is UNICODE 6) some examples provided, illustrate how to use DWT widgets, delegates, images, layout How to use 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed. 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library change DFLAGS="-I%@P%\..\src\phobos" to DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement if you don't have Build.exe yet, download it here. http://www.dsource.org/projects/build/ 4) navigate to \dmd\import\ run "make-swt-lib.bat" then copy swt.lib(release version) and swtd.lib(debug version) to \dmd\lib 5) navigate to \dmd\packages\swt\examples\??? and run the "run-build.bat" file or "run-dmd.bat" "run-build.bat" recompiles all the source code include the DWT source by Build "run-dmd.bat" compiles only example source and link to swt.lib - Shawn Liu |
August 13, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Does controlexample.exe only work in Windows XP? I have Windows ME and I get an error message telling me to upgrade to a newer version of Windows.
Paul
Shawn Liu wrote:
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to D language.
> Most DWT APIs is SWT compliant. (SWT 3.02 port)
>
>
> Download Source code here :
> http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar
>
> Binary Example :
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe
>
> More Example and Screenshorts
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png
> http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png
> http://svn.dsource.org/projects/dwt/downloads/examples/
>
> Forum on DSource
> http://www.dsource.org/forums/viewforum.php?f=1
>
> version 0.3:
> ---------------------------------------------------------------
> 1) adjust the directory structure, more like DFL.
> 2) Some bugs fixed
> 3) clumsy Callback removed, implemented in other way.
> 4) Image support : gif jpg png winbmp winicon
> 5) Both UNICODE and ANSI version supported.
> default to UNICODE version, use -version=ANSI to override,
> recommend to use UNICODE
> TCHAR is aliased to char/wchar depends on the version ident you set,
> default to wchar since default version is UNICODE
> 6) some examples provided, illustrate how to use DWT widgets, delegates, images, layout
>
>
>
> How to use
>
> 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed.
>
> 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library
> change
> DFLAGS="-I%@P%\..\src\phobos"
> to
> DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or
> DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D
>
> 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement
> if you don't have Build.exe yet, download it here.
> http://www.dsource.org/projects/build/
>
> 4) navigate to \dmd\import\
> run "make-swt-lib.bat" then copy swt.lib(release version) and
> swtd.lib(debug version) to \dmd\lib
>
> 5) navigate to \dmd\packages\swt\examples\???
> and run the "run-build.bat" file or "run-dmd.bat"
> "run-build.bat" recompiles all the source code include the DWT source by Build
> "run-dmd.bat" compiles only example source and link to swt.lib
>
> - Shawn Liu
>
>
>
>
>
|
August 13, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Paul Runde | Try to rebuild the application use -version=ANSI, since Windows ME is not UNICODE APIs. You need rebuild both the library and application. Or just execute "run-build.bat" in examples\controlexample folder with -version=ANSI switch, Build will rebuild the full source code but get a little big size in executable. I didn't test the library under windows 98 or ME, but both ANSI/UNICODE versions can run in Win2k/XP. "Paul Runde" <prunde@consolidated.net> wrote:ddlhoe$erq$1@digitaldaemon.com... > Does controlexample.exe only work in Windows XP? I have Windows ME and I get an error message telling me to upgrade to a newer version of Windows. > > Paul > > > Shawn Liu wrote: >> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java >> to D language. >> Most DWT APIs is SWT compliant. (SWT 3.02 port) >> >> >> Download Source code here : http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar >> >> Binary Example : http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe >> >> More Example and Screenshorts http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png http://svn.dsource.org/projects/dwt/downloads/examples/ >> >> Forum on DSource http://www.dsource.org/forums/viewforum.php?f=1 >> >> version 0.3: >> --------------------------------------------------------------- >> 1) adjust the directory structure, more like DFL. >> 2) Some bugs fixed >> 3) clumsy Callback removed, implemented in other way. >> 4) Image support : gif jpg png winbmp winicon >> 5) Both UNICODE and ANSI version supported. >> default to UNICODE version, use -version=ANSI to override, >> recommend to use UNICODE >> TCHAR is aliased to char/wchar depends on the version ident you set, >> default to wchar since default version is UNICODE >> 6) some examples provided, illustrate how to use DWT widgets, delegates, >> images, layout >> >> >> >> How to use >> >> 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed. >> >> 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library >> change >> DFLAGS="-I%@P%\..\src\phobos" >> to >> DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or >> DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in >> disk D >> >> 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement >> if you don't have Build.exe yet, download it here. >> http://www.dsource.org/projects/build/ >> >> 4) navigate to \dmd\import\ >> run "make-swt-lib.bat" then copy swt.lib(release version) and >> swtd.lib(debug version) to \dmd\lib >> >> 5) navigate to \dmd\packages\swt\examples\??? >> and run the "run-build.bat" file or "run-dmd.bat" >> "run-build.bat" recompiles all the source code include the DWT source >> by Build >> "run-dmd.bat" compiles only example source and link to swt.lib >> >> - Shawn Liu >> >> >> >> |
August 13, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Shawn Liu wrote:
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to D language.
> Most DWT APIs is SWT compliant. (SWT 3.02 port)
>
>
> Download Source code here :
> http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar
>
> Binary Example :
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe
>
> More Example and Screenshorts
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png
> http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png
> http://svn.dsource.org/projects/dwt/downloads/examples/
>
> Forum on DSource
> http://www.dsource.org/forums/viewforum.php?f=1
>
> version 0.3:
> ---------------------------------------------------------------
> 1) adjust the directory structure, more like DFL.
> 2) Some bugs fixed
> 3) clumsy Callback removed, implemented in other way.
> 4) Image support : gif jpg png winbmp winicon
> 5) Both UNICODE and ANSI version supported.
> default to UNICODE version, use -version=ANSI to override,
> recommend to use UNICODE
> TCHAR is aliased to char/wchar depends on the version ident you set,
> default to wchar since default version is UNICODE
> 6) some examples provided, illustrate how to use DWT widgets, delegates, images, layout
>
>
>
> How to use
>
> 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed.
>
> 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library
> change
> DFLAGS="-I%@P%\..\src\phobos"
> to
> DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or
> DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D
>
> 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement
> if you don't have Build.exe yet, download it here.
> http://www.dsource.org/projects/build/
>
> 4) navigate to \dmd\import\
> run "make-swt-lib.bat" then copy swt.lib(release version) and
> swtd.lib(debug version) to \dmd\lib
>
> 5) navigate to \dmd\packages\swt\examples\???
> and run the "run-build.bat" file or "run-dmd.bat"
> "run-build.bat" recompiles all the source code include the DWT source by Build
> "run-dmd.bat" compiles only example source and link to swt.lib
>
> - Shawn Liu
>
>
>
>
>
I'm a little late in mentioning this... been very busy... but:
Shawn, Once again superb work! All the examples worked that I tested (Windows XP Pro). I was particularly impressed with controlexample.exe. It demonstrates the extensive range of features available to DWT. And it all works flawlessly!
I have yet to test the actual compile/build process for the samples, but it's looking very good so far. Thanks for keeping the effort going. From what I can see DWT has huge potential in its current form. It looks to be more powerful than anything currently available for D, in the GUI bracket.
Good to see that you cleaned up the callback system too.
-JJR
|
August 13, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Shawn Liu wrote:
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to D language.
> Most DWT APIs is SWT compliant. (SWT 3.02 port)
>
>
> Download Source code here :
> http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar
>
> Binary Example :
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe
>
> More Example and Screenshorts
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png
> http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png
> http://svn.dsource.org/projects/dwt/downloads/examples/
>
> Forum on DSource
> http://www.dsource.org/forums/viewforum.php?f=1
>
> version 0.3:
> ---------------------------------------------------------------
> 1) adjust the directory structure, more like DFL.
> 2) Some bugs fixed
> 3) clumsy Callback removed, implemented in other way.
> 4) Image support : gif jpg png winbmp winicon
> 5) Both UNICODE and ANSI version supported.
> default to UNICODE version, use -version=ANSI to override,
> recommend to use UNICODE
> TCHAR is aliased to char/wchar depends on the version ident you set,
> default to wchar since default version is UNICODE
> 6) some examples provided, illustrate how to use DWT widgets, delegates, images, layout
>
>
>
> How to use
>
> 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed.
>
> 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library
> change
> DFLAGS="-I%@P%\..\src\phobos"
> to
> DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or
> DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D
>
> 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement
> if you don't have Build.exe yet, download it here.
> http://www.dsource.org/projects/build/
>
> 4) navigate to \dmd\import\
> run "make-swt-lib.bat" then copy swt.lib(release version) and
> swtd.lib(debug version) to \dmd\lib
>
> 5) navigate to \dmd\packages\swt\examples\???
> and run the "run-build.bat" file or "run-dmd.bat"
> "run-build.bat" recompiles all the source code include the DWT source by Build
> "run-dmd.bat" compiles only example source and link to swt.lib
>
> - Shawn Liu
>
>
>
>
>
Also, I just wanted to say that it's really nice to see the fast performance of DWT with D as compared to SWT and java. Java always takes so long to load the libraries and VM. The difference is readily apparant.
-JJR
|
August 13, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu |
Mr. Liu,
all I can say is - AMAZING! :) Good work, and thanks! :)
--
...........
Dejan Lekic
http://dejan.lekic.org
|
August 14, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Cool!!
The only problem I've found so far is the canvas demo.
Steps to reproduce the bug:
1. Start controlexample.exe;
2. Select the "canvas" tab and click "200x200";
3. Scroll the canvas either horizontally or vertically.
Then the circle is not refreshed correctly.
Shawn Liu wrote:
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to D language.
> Most DWT APIs is SWT compliant. (SWT 3.02 port)
>
>
> Download Source code here :
> http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar
>
> Binary Example :
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe
>
> More Example and Screenshorts
> http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png
> http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png
> http://svn.dsource.org/projects/dwt/downloads/examples/
>
> Forum on DSource
> http://www.dsource.org/forums/viewforum.php?f=1
>
> version 0.3:
> ---------------------------------------------------------------
> 1) adjust the directory structure, more like DFL.
> 2) Some bugs fixed
> 3) clumsy Callback removed, implemented in other way.
> 4) Image support : gif jpg png winbmp winicon
> 5) Both UNICODE and ANSI version supported.
> default to UNICODE version, use -version=ANSI to override,
> recommend to use UNICODE
> TCHAR is aliased to char/wchar depends on the version ident you set,
> default to wchar since default version is UNICODE
> 6) some examples provided, illustrate how to use DWT widgets, delegates, images, layout
>
>
>
> How to use
>
> 1) extracts all files to \dmd directory. (overwrite the \dmd directory),"\dmd" is where the DMD installed.
>
> 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library
> change
> DFLAGS="-I%@P%\..\src\phobos"
> to
> DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or
> DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D
>
> 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement
> if you don't have Build.exe yet, download it here.
> http://www.dsource.org/projects/build/
>
> 4) navigate to \dmd\import\
> run "make-swt-lib.bat" then copy swt.lib(release version) and
> swtd.lib(debug version) to \dmd\lib
>
> 5) navigate to \dmd\packages\swt\examples\???
> and run the "run-build.bat" file or "run-dmd.bat"
> "run-build.bat" recompiles all the source code include the DWT source by Build
> "run-dmd.bat" compiles only example source and link to swt.lib
>
> - Shawn Liu
>
>
>
>
>
|
August 14, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | zwang wrote: > Cool!! Yup, great work Shawn! > The only problem I've found so far is the canvas demo. > Steps to reproduce the bug: > 1. Start controlexample.exe; > 2. Select the "canvas" tab and click "200x200"; > 3. Scroll the canvas either horizontally or vertically. > Then the circle is not refreshed correctly. Happens to me too.. If NO_MERGE_PAINTS is enabled, though, it works fine, so the problem may be there... xs0 |
August 14, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Shawn Liu | Wow looks great, and fast! Builds w/o problems here , great work! Couple small things I noticed , when building the examples , the run-build commands are't e(-X)cluding the swt package so the whole thing gets compiled in , not a big deal just a slightly longer build time. "Shawn Liu" <liuxuhong.cn@gmail.com> wrote in message news:ddlgim$e45$2@digitaldaemon.com... > DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java to > D language. > Most DWT APIs is SWT compliant. (SWT 3.02 port) > > > Download Source code here : http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar > > Binary Example : http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe > > More Example and Screenshorts http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png http://svn.dsource.org/projects/dwt/downloads/examples/ > > Forum on DSource http://www.dsource.org/forums/viewforum.php?f=1 > > version 0.3: > --------------------------------------------------------------- > 1) adjust the directory structure, more like DFL. > 2) Some bugs fixed > 3) clumsy Callback removed, implemented in other way. > 4) Image support : gif jpg png winbmp winicon > 5) Both UNICODE and ANSI version supported. > default to UNICODE version, use -version=ANSI to override, > recommend to use UNICODE > TCHAR is aliased to char/wchar depends on the version ident you set, > default to wchar since default version is UNICODE > 6) some examples provided, illustrate how to use DWT widgets, delegates, > images, layout > > > > How to use > > 1) extracts all files to \dmd directory. (overwrite the \dmd > directory),"\dmd" is where the DMD installed. > > 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library > change > DFLAGS="-I%@P%\..\src\phobos" > to > DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or > DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk D > > 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement > if you don't have Build.exe yet, download it here. > http://www.dsource.org/projects/build/ > > 4) navigate to \dmd\import\ > run "make-swt-lib.bat" then copy swt.lib(release version) and > swtd.lib(debug version) to \dmd\lib > > 5) navigate to \dmd\packages\swt\examples\??? > and run the "run-build.bat" file or "run-dmd.bat" > "run-build.bat" recompiles all the source code include the DWT source by > Build > "run-dmd.bat" compiles only example source and link to swt.lib > > - Shawn Liu > > > > > |
August 14, 2005 Re: DWT windows version 0.3 | ||||
---|---|---|---|---|
| ||||
Posted in reply to Charles | Oops , accidentally hit send . Anyway amazing work! Charlie "Charles" <noone@nowhere.com> wrote in message news:ddnsng$279e$1@digitaldaemon.com... > Wow looks great, and fast! > > Builds w/o problems here , great work! > > Couple small things I noticed , when building the examples , the run-build commands are't e(-X)cluding the swt package so the whole thing gets compiled > in , not a big deal just a slightly longer build time. > > "Shawn Liu" <liuxuhong.cn@gmail.com> wrote in message news:ddlgim$e45$2@digitaldaemon.com... > > DWT is a port of the SWT (Standard Widget Toolkit) GUI Library from Java > to > > D language. > > Most DWT APIs is SWT compliant. (SWT 3.02 port) > > > > > > Download Source code here : http://svn.dsource.org/projects/dwt/downloads/dwt-win.rar > > > > Binary Example : > > http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.exe > > > > More Example and Screenshorts > > http://svn.dsource.org/projects/dwt/downloads/examples/controlexample.png > > http://svn.dsource.org/projects/dwt/downloads/examples/dummyeclipse.png http://svn.dsource.org/projects/dwt/downloads/examples/ > > > > Forum on DSource http://www.dsource.org/forums/viewforum.php?f=1 > > > > version 0.3: > > --------------------------------------------------------------- > > 1) adjust the directory structure, more like DFL. > > 2) Some bugs fixed > > 3) clumsy Callback removed, implemented in other way. > > 4) Image support : gif jpg png winbmp winicon > > 5) Both UNICODE and ANSI version supported. > > default to UNICODE version, use -version=ANSI to override, > > recommend to use UNICODE > > TCHAR is aliased to char/wchar depends on the version ident you set, > > default to wchar since default version is UNICODE > > 6) some examples provided, illustrate how to use DWT widgets, delegates, > > images, layout > > > > > > > > How to use > > > > 1) extracts all files to \dmd directory. (overwrite the \dmd > > directory),"\dmd" is where the DMD installed. > > > > 2) modify the sc.ini in \dmd\bin, to add the import path of dwt library > > change > > DFLAGS="-I%@P%\..\src\phobos" > > to > > DFLAGS="-I%@P%\..\src\phobos;c:\dmd\import" or > > DFLAGS="-I%@P%\..\src\phobos;d:\dmd\import" if you install DMD in disk > D > > > > 3) make sure "Derek Parnell"'s Build.exe is in your PATH envirement > > if you don't have Build.exe yet, download it here. > > http://www.dsource.org/projects/build/ > > > > 4) navigate to \dmd\import\ > > run "make-swt-lib.bat" then copy swt.lib(release version) and > > swtd.lib(debug version) to \dmd\lib > > > > 5) navigate to \dmd\packages\swt\examples\??? > > and run the "run-build.bat" file or "run-dmd.bat" > > "run-build.bat" recompiles all the source code include the DWT source > by > > Build > > "run-dmd.bat" compiles only example source and link to swt.lib > > > > - Shawn Liu > > > > > > > > > > > > |
Copyright © 1999-2021 by the D Language Foundation