digitalmars.D.dwt - Widget Arguements
- Jack (9/9) May 04 2014 I'm using the SWT API to learn DWT and saw one thing that I
- Jacob Carlborg (7/16) May 04 2014 Yes, but SWT.BAR is an integer so that should work. The API is the same
- Jack (6/26) May 04 2014 I tried to initialize Menu() with the SWT.BAR but it was
- Jack (3/33) May 04 2014 Nvm I just found that I should include org.eclipse.swt.SWT. Sorry
- Jacob Carlborg (4/6) May 05 2014 No problem.
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); 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.
May 04 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
May 04 2014
On Monday, 5 May 2014 at 06:16:06 UTC, Jacob Carlborg wrote:On 05/05/14 06:32, Jack wrote:I tried to initialize Menu() with the SWT.BAR but it was undefined apparently. Error: undefined identifier SWT Error: no constructor for Menu Am I missing something?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.
May 04 2014
On Monday, 5 May 2014 at 06:30:47 UTC, Jack wrote:On Monday, 5 May 2014 at 06:16:06 UTC, Jacob Carlborg wrote:Nvm I just found that I should include org.eclipse.swt.SWT. Sorry for the stupid question.On 05/05/14 06:32, Jack wrote:I tried to initialize Menu() with the SWT.BAR but it was undefined apparently. Error: undefined identifier SWT Error: no constructor for Menu Am I missing something?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.
May 04 2014
On 05/05/14 08:39, Jack wrote:Nvm I just found that I should include org.eclipse.swt.SWT. Sorry for the stupid question.No problem. -- /Jacob Carlborg
May 05 2014