Widget Arguements
Jacob Carlborg via Digitalmars-d-dwt
digitalmars-d-dwt at puremagic.com
Sun May 4 23:16:05 PDT 2014
On 05/05/14 06:32, Jack wrote:
> I'm using the SWT API to learn DWT and saw one thing that I
> didn't particularly understand.
>
> Basically in the SWT Documentations the syntax goes like this:
>
> Menu menu = new Menu(shell, SWT.BAR);
>
> While DWT requires an integer for the second arguement.
>
> auto menu = new Menu(shell, 1);
Yes, but SWT.BAR is an integer so that should work. The API is the same
in Java.
> I'm gonna ask, where can I find some documentation or any sort of
> hint to know what integer corresponds to what component in DWT.
> Thank you.
There really is no API documentation for DWT since it's using the same
API as SWT, any documentation for SWT should be applicable.
--
/Jacob Carlborg
More information about the Digitalmars-d-dwt
mailing list