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 » Draw, Display, Images, Bitmaps, Icons » DrawImage with XOR undefined
Re: DrawImage with XOR undefined [message #9109 is a reply to message #9108] Tue, 17 April 2007 21:57 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
nixnixnix wrote on Tue, 17 April 2007 15:20

I am using RectTracker to grab a node from a TreeCtrl and drag it onto another node in order to change the tree hierarchy.

I tried asking the tree control to redraw its nodes while I was in the RectTracker loop but it fell over due to some checks it performs on itself so am now thinking that the easiest way to do this is sample the screen while I'm tracking in the local loop and draw directly on the screen. Because I'm in the local loop I can't wait to refresh.

I've subclassed from RectTracker and overwritten its DrawRect routine. My only problem is that I erase the background so I need to sample it and replace it.

Another alternative would be to catch LeftDown, MouseMove and LeftUp but I like some of the default behavior or RectTracker so as long as my idea to sample the background works, am there.

Nick


I see. Well, right at the moment, I would rather tried radically different approach - make the tree out of Ctrl nodes, so that you can easily handle the drag&drop operation by them.

OTOH, I think this is a strong indication that we should do something with D&D soon...

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to import iml from other class?
Next Topic: from window to image
Goto Forum:
  


Current Time: Mon Aug 25 06:13:02 CEST 2025

Total time taken to generate the page: 0.00407 seconds