Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » empty link displayed in 2 lines on Windows
empty link displayed in 2 lines on Windows [message #502238] Mon, 07 December 2009 11:14 Go to next message
Andre Dietisheim is currently offline Andre DietisheimFriend
Messages: 131
Registered: July 2009
Senior Member
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 17:33 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
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
Previous Topic:Odd difference in TableViewer between Carbon and Cocoa (OSX)
Next Topic:set Column width to show complete text
Goto Forum:
  


Current Time: Thu Apr 25 03:31:04 GMT 2024

Powered by FUDForum. Page generated in 0.02640 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top