View Full Version : Drawing and UI update
ArdeII
09-18-2009, 12:14 PM
Because the documentation of iplug is poor and I'm very dummy person I have to ask another question ;)
How do I update the UI if I for example want to do some animation using ::DrawLine method?
Where should I do the drawing. I suppose ::ProcessDoubleReplacing is not the right place?
thanks
- Arto
schwa
09-18-2009, 12:18 PM
ProcessDoubleReplacing is exactly the wrong place :) Keep audio processing and GUI processing separated. If you want something to continuously animate, you'll need to make your own control class (inherit from the IControl subclass that is most like what you want to end up with), and have it always return true from IsDirty. That way it will get redrawn at 24fps (or whatever you set IGraphics::FPS to), unlike normal controls which only get redrawn when the user moves something.
ArdeII
09-18-2009, 12:30 PM
thanks again for very quick answer.
I'll try what you suggested and let you know how it went.
nice weekend to you too ;)
debian
04-05-2010, 12:32 PM
how did you do it and how did it went?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.