How would you do this?

Macaco

Freshman
Joined
Jul 5, 2004
Messages
39
How would you do this layers with time?

Would you create a picturebox or several pictures boxes and draw the vertical lines in them????

thank you for your help
 

Attachments

You could use a picture box or something similiar and custom draw it using either DirectX or the GDI+ libs...

What specifically are you trying to accomplish? And by that I mean, what is that control you drew supposed to do?
 
I want to do this kind of timeline and below a picturebox with a waveform drawn (similar to premiere qhere you have layers and a layer sound(1 in my case)). But This timeline, as well as the waveform could be resized when needed, as premiere also does, in order to see the whole waveform and timeline or just a part of it.

What do you think about it?

thank you very much for your help.
 
Unfortunately I think a custom control is your only option. I tried to do something similiar for a video editing program I was writing. It ended up looking pretty cool I thought.

GDI+ is a good place to start for 2D but it may not have the performance you need, in which case you'll have to take on DirectX. For more info on graphics, this site has got some great forums on both DirectX, GDI+, and graphics in general.

Good luck, and have fun. You will definatley learn a lot of cool stuff if you decide to go that route.
 
Mmmm... I have no idea about custom controls... but one qüestion, why do you think it is necessary ?

I thought I could draw the lines with GDI and If I need to resize (as I told) I can redraw it... (It's not absolutely necessary to draw it really fast).
And for example put two panels, one under the other, the layers and the waveform...
So I thought I could manage good with this... what's your opinion?


By the way, thank you for your help ;)
 
By custom all I really mean is you make the graphics and you decide what the events mean. For example, if you wanted to make a custom button with a different look and feel than the default button, you would make 3 drawings, up, down, and disabled. Say you wanted it to change colors when the mouse went over it, make a fourth drawing and then code that in too.

A more applicable example, say you want the ability to move a point in time onf the wave forwards or backwards (wave progress say). You would have to define yourself how the drawing will change based on the inputs. You don't get it for free like you would in a default control.

Stick with GDI+ and see how it goes. It is definately easier to code and distribute. As far as the two panel idea...what about the transparency? Can you actually get the layering affect you want through that?

Hit the graphics forum for some more help on stuff to draw on and how to draw.
 
Back
Top