Bug 325564 - Add API that allows to see Text message when control has initial focus and no text
Summary: Add API that allows to see Text message when control has initial focus and no...
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 260371 329761
  Show dependency tree
 
Reported: 2010-09-17 06:09 EDT by Dani Megert CLA
Modified: 2019-09-06 16:16 EDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2010-09-17 06:09:44 EDT
3.7 M2.

In the filtered tree we still have to hack around the case where the control gets initial focus because the hint message from Text.setMessage is only shown when the Text control has no focus. There should be an API which allows to show the message until some text is set (via code or user).
Comment 1 Felipe Heidrich CLA 2010-10-13 09:42:36 EDT
Not sure if I can change that on Cocoa. Scott ?
(on windows and gtk we draw the message ourselves, so it will be okay).

Dani, can't the initial focus be assigned to the Tree ?
Comment 2 Felipe Heidrich CLA 2010-10-13 09:56:13 EDT
Dani, I just read Bug 260371. Maybe fixing Bug 325565 is a better option.
Comment 3 Dani Megert CLA 2010-10-13 11:26:53 EDT
> Dani, can't the initial focus be assigned to the Tree ?
No. The user should immediately be able to start filtering.

>Maybe fixing Bug 325565 is a better option.
I would even prefer that! ;-)
Comment 4 Scott Kovatch CLA 2010-10-13 13:09:13 EDT
(In reply to comment #1)
> Not sure if I can change that on Cocoa. Scott ?

When a single-line text has focus the field editor is in use, so the text field cell with the placeholder string is being overdrawn by the editor. You might be able to get away with making the field editor transparent when there's no text and then making it opaque when the user starts typing.
Comment 5 Henno Vermeulen CLA 2010-10-27 10:22:44 EDT
This would also be useful for us. To save screen space we would in some places like to use a Text field without a label in front but a Message inside to show it's meaning when it's empty.
Comment 6 Eclipse Webmaster CLA 2019-09-06 16:16:19 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.