September 13, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anton Alexeev | On 2013-09-12 18:56, Anton Alexeev wrote: > Is there no Browser module in DWT? No, unfortunately the browser package never got ported properly. I think it was ported at some time, but only for Linux. It also depends on an additional external library. I can always try at compile and see what happens. -- /Jacob Carlborg |
September 13, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anton Alexeev | On 2013-09-12 19:28, Anton Alexeev wrote: > Found out how to handle events: > > class DisposeListenerImpl:DisposeListener{ > public void widgetDisposed(DisposeEvent e) { > writeln("Disposed"); > } > } > > shell.addDisposeListener(new DisposeListenerImpl); > > > Is this the right way? Yes, that's the standard SWT/Java way. You should be able to use a delegate as well. See: https://github.com/d-widget-toolkit/org.eclipse.swt.gtk.linux.x86/blob/master/src/org/eclipse/swt/widgets/Listener.d#L103 The same exist for Runnable as well: http://www.dsource.org/projects/dwt/wiki/DiffToOriginal#ThingsaddedorchangedinDWT: -- /Jacob Carlborg |
September 13, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Friday, 13 September 2013 at 06:27:05 UTC, Jacob Carlborg wrote:
> On 2013-09-12 18:56, Anton Alexeev wrote:
>> Is there no Browser module in DWT?
>
> No, unfortunately the browser package never got ported properly. I think it was ported at some time, but only for Linux. It also depends on an additional external library. I can always try at compile and see what happens.
So if there is no Browser module, how can I display some HTML in my app?
|
September 14, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anton Alexeev | On 2013-09-13 21:50, Anton Alexeev wrote: > So if there is no Browser module, how can I display some HTML in my app? I don't know. You can always try and finish the port if you really need to display HTML. -- /Jacob Carlborg |
September 14, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Anton Alexeev | On 2013-09-13 21:50, Anton Alexeev wrote: > So if there is no Browser module, how can I display some HTML in my app? You could use whatever API Gtk provides to render HTML. What you would use if you weren't using DWT. -- /Jacob Carlborg |
September 15, 2013 Re: Compiling the hello world example fails (2) | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jacob Carlborg | On Saturday, 14 September 2013 at 10:45:42 UTC, Jacob Carlborg wrote:
> On 2013-09-13 21:50, Anton Alexeev wrote:
>
>> So if there is no Browser module, how can I display some HTML in my app?
>
> I don't know. You can always try and finish the port if you really need to display HTML.
I think it's to hard for me now
|
Copyright © 1999-2021 by the D Language Foundation