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 » TreeCtrl » Cursor doesn't refresh
Cursor doesn't refresh [message #15528] Mon, 28 April 2008 10:37 Go to next message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
Hello,
I have problem with TreeCtrl with context menu enabled. In my application when I click right mouse button at the TreeCtrl, context menu appears, but when it disappears after clicking outside of it and the cursor line number remains unchanged, the cursor doesn't refresh correctly - only part previously behind the context menu refreshes.
On the line 1132 of TreeCtrl.cpp (2008-1beta2) in TreeCtrl::GotFocus() method there is "RefreshLine(cursor)" that is (as I can see) responsible for refreshing the cursor in situations like the one discussed. Is there any reason for "RefreshLine(cursor)" being in "else" branch of the "if" clause? After I removed the "else" (thus taking "RefreshLine(cursor)" out of the "if" clause) the problem disappeared.

Thank you for your help.
Gabi
Re: Cursor doesn't refresh [message #15590 is a reply to message #15528] Tue, 29 April 2008 20:18 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Hm, I am not quite sure why there is "else" either...

For now I removed it.

Mirek
Re: Cursor doesn't refresh [message #15605 is a reply to message #15590] Wed, 30 April 2008 14:08 Go to previous message
qapko is currently offline  qapko
Messages: 55
Registered: October 2007
Location: Slovakia
Member
OK. To be honest, removing some bug by only removing some portion of the code is in some manner refreshing for me Smile
Thank you.

Gabi
Previous Topic: Problem displaying labels under ubuntu 7.10
Next Topic: IsSelected(id)
Goto Forum:
  


Current Time: Wed Apr 17 00:40:38 CEST 2024

Total time taken to generate the page: 0.01225 seconds