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 » RectTracker filled with black
Re: RectTracker filled with black [message #14534 is a reply to message #14533] Fri, 29 February 2008 15:34 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
mrjt wrote on Fri, 29 February 2008 16:20

I'm aware of the imprecision, but I wasn't sure what to do about it. It's linked to how rectangles are drawn, ie. inclusive top-left-coords, exclusive bottom-right coords.

Changing it either way is wrong, so I chose the way that means if you draw a rect of the coords it perfectly matches the (visible) cursor position.

James

Yes, that makes sense in these conditions and I guess is OK with U++ rects. I'll inherit my class from RectTracker so that I can use the trackers like in the atachment.
  • Attachment: RectTest.exe
    (Size: 359.50KB, Downloaded 395 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How can I use RectTracker in a rubber-band like operation?
Next Topic: [Bug] Windows UI Refresh Missed.
Goto Forum:
  


Current Time: Sun Jun 09 09:59:54 CEST 2024

Total time taken to generate the page: 0.01080 seconds