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++ Widgets - General questions or Mixed problems » Paint outside Ctrl Rect
Re: Paint outside Ctrl Rect [message #23843 is a reply to message #23788] Thu, 26 November 2009 08:52 Go to previous messageGo to previous message
mr_ped is currently offline  mr_ped
Messages: 825
Registered: November 2005
Location: Czech Republic - Praha
Experienced Contributor
The control should adapt to arrow's width, and draw it a tad smaller, so it will end inside rectangle and no clipping will happen. That's the correct way how it should work, but I can see it may be a bit tricky to code that size adjustment by width.

edit: I would probably end with calculating new boundary rectangle as 1/2 of line width inside of the clip rectangle. This way the drawn arrow would be inside the clipping, and like 99+% of available space would be used (but under certain arrow's angles like the one you posted it would not use 100% of available space). But I think visually it would work very well even in this simple way.

[Updated on: Thu, 26 November 2009 08:55]

Report message to a moderator

 
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: Calling windows not in main.cpp
Next Topic: up & down within ColumnList moves focus out
Goto Forum:
  


Current Time: Tue May 21 21:10:29 CEST 2024

Total time taken to generate the page: 0.02577 seconds