Home » U++ Library support » LineEdit, EditFields, DocEdit » DocEdit bug
DocEdit bug [message #10218] |
Mon, 25 June 2007 23:43 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
After calling NoWantFocus(), the needed behaviour would be to accept focus when clicking in the DocEdit, but to not accept using keyboard navigation (TAB).
Currently, it is unable to accept focus aon mouse clicks, so the control is not editable. Fix:
void DocEdit::LeftDown(Point p, dword flags) {
//SetWantFocus(); //removed
SetFocus(); //added
I think, LineEdit has the same problem.
|
|
|
Re: DocEdit bug [message #10222 is a reply to message #10218] |
Tue, 26 June 2007 00:04 |
|
mirek
Messages: 14039 Registered: November 2005
|
Ultimate Member |
|
|
zsolt wrote on Mon, 25 June 2007 17:43 | After calling NoWantFocus(), the needed behaviour would be to accept focus when clicking in the DocEdit, but to not accept using keyboard navigation (TAB).
Currently, it is unable to accept focus aon mouse clicks, so the control is not editable. Fix:
void DocEdit::LeftDown(Point p, dword flags) {
//SetWantFocus(); //removed
SetFocus(); //added
I think, LineEdit has the same problem.
|
This is a very good point, but right now I am not sure it is OK (despite possible documentation).
Theory: If widget does not want focus, it simply does not want to get it by any user action (neither Tab or Click), end of the story...
(This does not mean I strongly agree with you, just I am not sure...)
Mirek
|
|
|
Re: DocEdit bug [message #10224 is a reply to message #10222] |
Tue, 26 June 2007 00:33 |
zsolt
Messages: 698 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
You are right, but AFAIK, currently, all upp controls are working, as I described in my first post (except for DocEdit and LineEdit).
Quote: |
Theory: If widget does not want focus, it simply does not want to get it by any user action (neither Tab or Click), end of the story...
|
I think, this can be acheived using SetEditable(false) as well. Maybe the WantFocus name is not the best, something like WantKeyboardFocus would be better, but I think, this behaviour is needed. I use this for controls, I don't want to be in TAB sequence, such as buttons or some other controls in some special windows.
But a consistent behaviour would be good.
|
|
|
|
|
Goto Forum:
Current Time: Fri Sep 20 19:13:01 CEST 2024
Total time taken to generate the page: 0.02751 seconds
|