empty link displayed in 2 lines on Windows [message #502238] |
Mon, 07 December 2009 06:14  |
Eclipse User |
|
|
|
Hi
I noticed strage behaviour of the link widget on windows. If I set its
text to display an empty link,
<a href="mailto:"></a>
the result is that it displays 2 empty lines on windows. Odd enough,
this is not the case on GTK, where I mainly develop. If I'd be
developing on Windows, I'd traced through and tried to spot the 'bug'.
Is it a bug or do I miss something?
Thanks for your help!
Greets
André
|
|
|
Re: empty link displayed in 2 lines on Windows [message #503058 is a reply to message #502238] |
Thu, 10 December 2009 12:33  |
Eclipse User |
|
|
|
This sounds like the wrong behaviour, but it works for me with the latest
swt (tried on Windows 2000 and Vista). Which SWT version and Windows
version are you using? And does the basic snippet below work for you? If
it does, are you able to change it to more closely resemble your code and to
show the problem?
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Link link = new Link(shell, SWT.NONE);
link.setText("<a href=\"mailto:\"></a>");
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
Grant
"Ande Dietisheim" <dietisheim@puzzle.ch> wrote in message
news:hfio2i$edf$1@build.eclipse.org...
> Hi
>
> I noticed strage behaviour of the link widget on windows. If I set its
> text to display an empty link,
>
> <a href="mailto:"></a>
>
> the result is that it displays 2 empty lines on windows. Odd enough,
> this is not the case on GTK, where I mainly develop. If I'd be
> developing on Windows, I'd traced through and tried to spot the 'bug'.
> Is it a bug or do I miss something?
>
> Thanks for your help!
>
> Greets
> Andr
|
|
|
Powered by
FUDForum. Page generated in 0.04238 seconds