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 |
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
|
|
|
|
|
Paint outside Ctrl Rect
By: koldo on Sun, 22 November 2009 11:11
|
|
|
Re: Paint outside Ctrl Rect
By: mirek on Sun, 22 November 2009 23:09
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Mon, 23 November 2009 11:05
|
|
|
Re: Paint outside Ctrl Rect
By: mrjt on Mon, 23 November 2009 11:09
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Mon, 23 November 2009 17:36
|
|
|
Re: Paint outside Ctrl Rect
By: mirek on Tue, 24 November 2009 15:01
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Wed, 25 November 2009 14:18
|
|
|
Re: Paint outside Ctrl Rect
By: mirek on Wed, 25 November 2009 14:50
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Wed, 25 November 2009 15:33
|
|
|
Re: Paint outside Ctrl Rect
By: mirek on Wed, 25 November 2009 19:30
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Wed, 25 November 2009 21:49
|
|
|
Re: Paint outside Ctrl Rect
By: mr_ped on Thu, 26 November 2009 08:52
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Thu, 26 November 2009 10:20
|
|
|
Re: Paint outside Ctrl Rect
By: koldo on Thu, 26 November 2009 13:20
|
Goto Forum:
Current Time: Tue May 21 21:10:29 CEST 2024
Total time taken to generate the page: 0.02577 seconds
|