Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 13975
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: Fri Apr 19 20:13:17 CEST 2024

Total time taken to generate the page: 0.03838 seconds