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

Home » U++ Library support » TreeCtrl » Cursor doesn't refresh
Cursor doesn't refresh [message #15528] Mon, 28 April 2008 10:37 Go to previous 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
 
Read Message
Read Message
Read Message
Previous Topic: Problem displaying labels under ubuntu 7.10
Next Topic: IsSelected(id)
Goto Forum:
  


Current Time: Fri Jun 26 10:33:33 GMT+2 2026

Total time taken to generate the page: 0.00495 seconds