U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » LineEdit, EditFields, DocEdit » DocEdit bug
Re: DocEdit bug [message #10222 is a reply to message #10218] Tue, 26 June 2007 00:04 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14290
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: EditString: how to convert data with "~" operator to char*?
Next Topic: TextCtrl not working
Goto Forum:
  


Current Time: Sun Apr 26 14:00:02 GMT+2 2026

Total time taken to generate the page: 0.01059 seconds