Notifications
Clear all

[Closed] system.drawing.pen?

Have you tried s.Invalidate() in the mouseDown handler? That should force it to update in the next drawing cycle.

Martijn

hi Paul,

I did a bit of research into the paint event stuff here and found it generally quite slow via MXS. You could use the .focused property to only fire the paint event when the label is clicked but that might not fit in with what you are trying to do. There are a load of paint drawing methods that i experimented with to look at in the download at the end of the page i linked above.

In a few of my dotnet user controls i have used the paint event and there isn’t the slowdown that i see within direct use in Max. However you are bound to using the external assembly which isnt ideal for many.

If you need help with an inherited control, let me know.

 PEN

I definitely have a problem then. I need to be able to replicate some thing like the time line in Max. I need it to be scalable as it is in Max and I need to have it support up to and above 10k of frames. There are a few optimizations that I can do like only drawing in the visible area and maybe drawing less lines.

What is the faster way of drawing that you are thinking of Pete?

 PEN

In looking at your site and script Pete I think that I’m going about it the same way. Nice script that you have there and thanks for sharing that. I looked at it before but didn’t understand as much as I do now.

Page 2 / 2