Thread overview
DWT windows version 0.1 preview
May 22, 2005
Shawn Liu
May 22, 2005
Vathix
May 22, 2005
Shawn Liu
May 22, 2005
John Reimer
May 22, 2005
John Reimer
May 22, 2005
Shawn Liu
Sorry, I found it failed on Win2000 -Walter
May 23, 2005
Shawn Liu
May 23, 2005
Walter
May 23, 2005
Shawn Liu
May 22, 2005
After months efforts, I think, DWT windows version 0.1 is in the corner. Here is a preview.

DWT is a port of the SWT (Standard Widget Toolkit) GUI Library. Most APIs is SWT compliant. You can refer to SWT documentation.

The attached is screenshots mostly snatched from controlexample.exe.

forum URL
http://www.dsource.org/projects/dwt
http://www.dsource.org/forums/viewtopic.php?t=790

Source download URL, it's easy to build.
http://www.dnaic.com/d/download/dwt.rar
Binary executable
http://www.dnaic.com/d/download/controlexample.exe
(May be very slow outside China, I have problem to access SVN server)


The current DWT implementation:
1. Most standard widgets are workable. Though some is not consummated.
   Button, Combo, Coolbar, Toolbar, Group, List, Label, Progressbar,
Slider/Scale, TabFolder, Table, Tree, Sash

2. Most custom widgets are available except "Styled Text" due to an "invalid UTF character error". include control:  CComob, CLabel, CTabFolder, SashForm, TableTree

3. Dialogs: all common dialog works. Include FileDialog, DirectoryDialog, ColorDialog, FontDialog, PrintDialog.

4. Images : only WinBmp and WinIcon file supported so far. JPEG, TIFF, GIF, PNG will be implemented later.

5. COM/OLE : not workable currently. Include Accessible/Clipboard/Browser support can not work yet. The COM/OLE is some difficult for me since I have no COM programming experience. Later.


- Shawn Liu



May 22, 2005
On Sun, 22 May 2005 06:08:53 -0400, Shawn Liu <liuxuhong.cn@gmail.com> wrote:

> After months efforts, I think, DWT windows version 0.1 is in the corner.
> Here is a preview.
>
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library. Most APIs is
> SWT compliant. You can refer to SWT documentation.

Very cool
May 22, 2005
"Shawn Liu" <liuxuhong.cn@gmail.com> says :d6pll9$1lo3$1@digitaldaemon.com...
> After months efforts, I think, DWT windows version 0.1 is in the corner. Here is a preview.


All layoutmanagers are workable.

    FormLayout, FillLayout, GridLayout, RowLayout

examples binary and source available at :

http://www.dnaic.com/d/download/test_filllayout.exe http://www.dnaic.com/d/download/test_formlayout.exe http://www.dnaic.com/d/download/test_gridlayout.exe http://www.dnaic.com/d/download/test_rowlayout.exe


http://www.dnaic.com/d/download/test_filllayout.d http://www.dnaic.com/d/download/test_formlayout.d http://www.dnaic.com/d/download/test_gridlayout.d http://www.dnaic.com/d/download/test_rowlayout.d


May 22, 2005
Shawn Liu wrote:
> After months efforts, I think, DWT windows version 0.1 is in the corner. Here is a preview.
> 
> DWT is a port of the SWT (Standard Widget Toolkit) GUI Library. Most APIs is SWT compliant. You can refer to SWT documentation.
> 
> The attached is screenshots mostly snatched from controlexample.exe.
> 
> forum URL
> http://www.dsource.org/projects/dwt
> http://www.dsource.org/forums/viewtopic.php?t=790
> 
> Source download URL, it's easy to build.
> http://www.dnaic.com/d/download/dwt.rar
> Binary executable
> http://www.dnaic.com/d/download/controlexample.exe
> (May be very slow outside China, I have problem to access SVN server)
> 
> 
> The current DWT implementation:
> 1. Most standard widgets are workable. Though some is not consummated.
>    Button, Combo, Coolbar, Toolbar, Group, List, Label, Progressbar, Slider/Scale, TabFolder, Table, Tree, Sash
> 
> 2. Most custom widgets are available except "Styled Text" due to an "invalid UTF character error". include control:  CComob, CLabel, CTabFolder, SashForm, TableTree
> 
> 3. Dialogs: all common dialog works. Include FileDialog, DirectoryDialog, ColorDialog, FontDialog, PrintDialog.
> 
> 4. Images : only WinBmp and WinIcon file supported so far. JPEG, TIFF, GIF, PNG will be implemented later.
> 
> 5. COM/OLE : not workable currently. Include Accessible/Clipboard/Browser support can not work yet. The COM/OLE is some difficult for me since I have no COM programming experience. Later.
> 
> 
> - Shawn Liu 
> 
> 

I'm going to try to get this put on svn tonight.  This depends, of course, on how successful I am in accessing the download.  Last time it was quite difficult.

Thanks Shawn for all your hard work!  :-)

-JJR
May 22, 2005
John Reimer wrote:

> I'm going to try to get this put on svn tonight.  This depends, of course, on how successful I am in accessing the download.  Last time it was quite difficult.
> 
> Thanks Shawn for all your hard work!  :-)
> 
> -JJR

Dsource.org DWT svn project updated.  See dwt/branch/0.2 and dwt/downloads for project source and examples.

-JJR
May 22, 2005
Thanks to JJR! The source file can be download here now

http://svn.dsource.org/projects/dwt/downloads/dwt-20050522.rar


May 23, 2005
Sorry, I found it failed on Windows2000. But it seems OK on WinXP. And the problem seems : static Arrays will not be set to zero during initialization on Windows2000

// The 2 Dimension Array of Callbacks not zero after initalization. static Callback[MAX_CALLBACKS][MAX_ARGS] callback2D;

// Now I have to change the code like this
static Callback[][] callback2D = null;

void foo(){
if(callback2D is null){
callback2D = new Callback[][MAX_ARGS];
for(int i=0; i<MAX_ARGS; ++i){
callback2D[i] = new Callback[MAX_CALLBACKS];
}
}
}

Is this issue discussed before in the NG?


May 23, 2005
"Shawn Liu" <Shawn_member@pathlink.com> wrote in message news:d6s0sd$jkn$1@digitaldaemon.com...
> Is this issue discussed before in the NG?

It was a problem fixed in the latest update (0.125).


May 23, 2005
Thanks!

I have tested it at home with WinXP (DMD 0.125).
But my pc with Windows2000 in the office has an old version 0.123 of DMD.



In article <d6s9us$rh9$1@digitaldaemon.com>, Walter says...
>
>
>"Shawn Liu" <Shawn_member@pathlink.com> wrote in message news:d6s0sd$jkn$1@digitaldaemon.com...
>> Is this issue discussed before in the NG?
>
>It was a problem fixed in the latest update (0.125).
>
>