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 » U++ Library : Other (not classified elsewhere) » [bug report] EditField::StdBar Undo menu not checked and EditField::RightDown is reentrant
[bug report] EditField::StdBar Undo menu not checked and EditField::RightDown is reentrant [message #37276] Fri, 14 September 2012 08:56 Go to previous message
jinshiyi11 is currently offline  jinshiyi11
Messages: 7
Registered: October 2010
Location: CHINA
Promising Member
1.I think Undo menu should be disabled when EditField is readonly.
menu.Add(t_("Undo"), THISBACK(Undo))
		.Key(K_ALT_BACKSPACE)
		.Key(K_CTRL_Z);


So I change it to
menu.Add(IsEditable(),t_("Undo"), THISBACK(Undo))
		.Key(K_ALT_BACKSPACE)
		.Key(K_CTRL_Z);


2.When I repeat right click EditField,the EditField::RightDown method is reentrant.The stack likes the following:
index.php?t=getfile&id=3872&private=0

When I close the parent window,it may crash at the next code line.(It's easy to reproduce it in my project)

In the Upp's help document,"About modal loops and periodic timer events" has talked about this.I think EditField::RightDown should be protected.
  • Attachment: reentrant.png
    (Size: 27.29KB, Downloaded 455 times)

[Updated on: Fri, 14 September 2012 08:57]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: [bug report]DrawTextEllipsis
Next Topic: Class method called by keyboard hook callback has an empty "this" pointer
Goto Forum:
  


Current Time: Tue Apr 23 15:21:45 CEST 2024

Total time taken to generate the page: 0.01186 seconds