Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text hint support on Windows 7
Text hint support on Windows 7 [message #893217] Tue, 03 July 2012 09:14 Go to next message
Elvis Dominguez is currently offline Elvis DominguezFriend
Messages: 52
Registered: July 2009
Location: Switzerland
Member
Hi all,

I have a Text widget and I set a field hint using the method
Text#setMessage(java.lang.String)

This worked like a charm on Windows XP, but on Windows 7 the hint isn't
displayed.
The Text widget is set as not editable.
Example code:

Text field = new Text(parent, SWT.BORDER | SWT.SINGLE);
field.setEditable(false);
field.setMessage("Filter results");

Kindly, elvisd
Re: Text hint support on Windows 7 [message #893219 is a reply to message #893217] Tue, 03 July 2012 09:17 Go to previous messageGo to next message
Elvis Dominguez is currently offline Elvis DominguezFriend
Messages: 52
Registered: July 2009
Location: Switzerland
Member
Sorry, forgot to say that I'm using eclipse Indigo

On Tue, 03 Jul 2012 09:14:44 +0000, Elvis Dominguez wrote:

> Hi all,
>
> I have a Text widget and I set a field hint using the method
> Text#setMessage(java.lang.String)
>
> This worked like a charm on Windows XP, but on Windows 7 the hint isn't
> displayed.
> The Text widget is set as not editable.
> Example code:
>
> Text field = new Text(parent, SWT.BORDER | SWT.SINGLE);
> field.setEditable(false);
> field.setMessage("Filter results");
>
> Kindly, elvisd
Re: Text hint support on Windows 7 [message #893236 is a reply to message #893219] Tue, 03 July 2012 10:05 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Hi,

I think it's expected behavior. If you can't edit the text, then why it should give you a hint?
Re: Text hint support on Windows 7 [message #893266 is a reply to message #893236] Tue, 03 July 2012 12:20 Go to previous messageGo to next message
Elvis Dominguez is currently offline Elvis DominguezFriend
Messages: 52
Registered: July 2009
Location: Switzerland
Member
You are true, but the Text can become editable after some status change,
thus could be ok to display some hint even if not editable.

If is a expected behavior it's ok for me. But for the same SWT version
you have different behavior. In Linux and Windows XP the hint is
displayed, in W7 not.

Is maybe controlled by the OS?



On Tue, 03 Jul 2012 12:05:56 +0200, Jan Krakora wrote:

> Hi,
>
> I think it's expected behavior. If you can't edit the text, then why it
> should give you a hint?
Re: Text hint support on Windows 7 [message #893275 is a reply to message #893266] Tue, 03 July 2012 12:49 Go to previous messageGo to next message
Jan Krakora is currently offline Jan KrakoraFriend
Messages: 477
Registered: December 2009
Location: Prague
Senior Member
Yes, I think its controlled by the OS.

You could create a bug on the eclipse bugzilla for this. The SWT guys then give us the final answer.
Re: Text hint support on Windows 7 [message #893331 is a reply to message #893275] Tue, 03 July 2012 14:53 Go to previous messageGo to next message
Elvis Dominguez is currently offline Elvis DominguezFriend
Messages: 52
Registered: July 2009
Location: Switzerland
Member
Hi Jan,

thank you for your messages.
I've opened a bug [1] about this issue.

Kindly, elvisd


[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=384175





On Tue, 03 Jul 2012 14:49:04 +0200, Jan Krakora wrote:

> Yes, I think its controlled by the OS.
>
> You could create a bug on the eclipse bugzilla for this. The SWT guys
> then give us the final answer.
Re: Text hint support on Windows 7 [message #957845 is a reply to message #893331] Thu, 25 October 2012 14:42 Go to previous message
Eugene Halyuzov is currently offline Eugene HalyuzovFriend
Messages: 1
Registered: October 2012
Junior Member
Try to use Text widget with SWT.SEARCH style. At least for me it works...
Previous Topic:tree table flexibility
Next Topic:JVM Crash on xulrunner org.eclipse.swt.browser
Goto Forum:
  


Current Time: Thu Apr 25 12:44:25 GMT 2024

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

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

Back to the top