Click here to Skip to main content
15,885,855 members
Home / Discussions / C#
   

C#

 
GeneralRe: Invalidate rectangle problem Pin
Guffa30-Apr-08 7:55
Guffa30-Apr-08 7:55 
GeneralRe: Invalidate rectangle problem Pin
Luc Pattyn30-Apr-08 8:39
sitebuilderLuc Pattyn30-Apr-08 8:39 
GeneralRe: Invalidate rectangle problem Pin
invader824-May-08 22:21
invader824-May-08 22:21 
GeneralRe: Invalidate rectangle problem Pin
Luc Pattyn4-May-08 22:51
sitebuilderLuc Pattyn4-May-08 22:51 
AnswerRe: Invalidate rectangle problem Pin
Luc Pattyn30-Apr-08 8:24
sitebuilderLuc Pattyn30-Apr-08 8:24 
GeneralRe: Invalidate rectangle problem Pin
invader824-May-08 22:30
invader824-May-08 22:30 
GeneralRe: Invalidate rectangle problem Pin
invader824-May-08 22:47
invader824-May-08 22:47 
GeneralRe: Invalidate rectangle problem Pin
invader824-May-08 23:42
invader824-May-08 23:42 
ok i removed the invalidate(currentarea) statement
(wich was not needed)
but the problem still was there

increasing the size of the area fixed the problem.

but i still believe it hasn't anything to do with the "abc problem"
because i think guffa is right about this:

Start at A:
OBC
Move from A to C, first repaint A:
ABC
Then repaint C:
ABO
The B never changes, so it doesn't have to be repainted.


if i move fast with the mouse, and i go from a to c it never reaches b,
never paints anything on location b...
so it never has to refresh the b area.

PROBLEM FOUND:
I changed the code on the mousedown method to (previously only onmousemove),
and it seems when i only invalidate the
previous area, the ellipse only gets draw partially. (very easy to notice when i click next to the clippingrectangle)

the ellipse clips to the clippingrectangle during the onpainthandler...
so previously, the redrawing was indeed unable to redraw previous and current rectangle in one "refresh cycle"

so there are 2 ways to solve this (i think):

either i have to let the FillEllipse method know it doesnt have to clip to the rectangle
(i have no idea how i could achieve this, unless i change the clippingrectangle after
drawing the background, but i don't give it a big chance)

or ill have to combine rectangles with the region stuff...
QuestionCan not find entry point to function - Make sure you have exported the dll Pin
N a v a n e e t h30-Apr-08 2:55
N a v a n e e t h30-Apr-08 2:55 
AnswerRe: Can not find entry point to function - Make sure you have exported the dll Pin
Wes Aday30-Apr-08 4:18
professionalWes Aday30-Apr-08 4:18 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
N a v a n e e t h30-Apr-08 4:42
N a v a n e e t h30-Apr-08 4:42 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
Spacix One30-Apr-08 4:53
Spacix One30-Apr-08 4:53 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
N a v a n e e t h30-Apr-08 17:34
N a v a n e e t h30-Apr-08 17:34 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
Spacix One1-May-08 8:25
Spacix One1-May-08 8:25 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
Wes Aday30-Apr-08 5:05
professionalWes Aday30-Apr-08 5:05 
AnswerRe: Can not find entry point to function - Make sure you have exported the dll Pin
Rob Graham30-Apr-08 12:04
Rob Graham30-Apr-08 12:04 
GeneralRe: Can not find entry point to function - Make sure you have exported the dll Pin
N a v a n e e t h30-Apr-08 16:42
N a v a n e e t h30-Apr-08 16:42 
QuestionHow can copy cut and delete files through coding Pin
Naveed72730-Apr-08 2:33
Naveed72730-Apr-08 2:33 
AnswerRe: How can copy cut and delete files through coding Pin
Colin Angus Mackay30-Apr-08 2:46
Colin Angus Mackay30-Apr-08 2:46 
GeneralRe: How can copy cut and delete files through coding Pin
Naveed72730-Apr-08 2:55
Naveed72730-Apr-08 2:55 
AnswerRe: How can copy cut and delete files through coding Pin
Luc Pattyn30-Apr-08 2:57
sitebuilderLuc Pattyn30-Apr-08 2:57 
AnswerRe: How can copy cut and delete files through coding Pin
Simon P Stevens30-Apr-08 3:01
Simon P Stevens30-Apr-08 3:01 
GeneralRe: How can copy cut and delete files through coding Pin
Spacix One30-Apr-08 4:51
Spacix One30-Apr-08 4:51 
QuestionHow can I found out which dlls my (managed/unmanaged) dll depends on ... programmatically ! Pin
Berlus30-Apr-08 2:21
Berlus30-Apr-08 2:21 
AnswerRe: How can I found out which dlls my (managed/unmanaged) dll depends on ... programmatically ! Pin
Ravi Bhavnani30-Apr-08 2:39
professionalRavi Bhavnani30-Apr-08 2:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.