[WINDOWS] PLOTTER
Re: [WINDOWS] PLOTTER
Where is the source? Is it LUA - only or does it combine LUA with FB?
Could you put the source online?
Could you put the source online?
Last edited by AGS on Mar 25, 2009 7:13, edited 2 times in total.
actually i never wanted to rls the source, but as i am a gracefully person:
klick
btw it is fb with lua scripting (for the math function) and pls remove the quote, it is unnecessary ...
anyway i need sth like autoredraw. plot a graph and put an other form on top and then look at the graph again (its cleared). any ideas?
klick
btw it is fb with lua scripting (for the math function) and pls remove the quote, it is unnecessary ...
anyway i need sth like autoredraw. plot a graph and put an other form on top and then look at the graph again (its cleared). any ideas?
Last edited by Hard on Mar 23, 2009 13:51, edited 2 times in total.
the clearing comes from windows
internal it clears forms, if they arent needed. usually i use autoredraw in vb. at this point i am a little bit stuck with wm_paint ... anyway i wont extend functionality, because this was a test for me to become familiar with the windows gui api.
variable amplitude? you mean scale?
cause amplitude -> amplitude * trigonometric function
internal it clears forms, if they arent needed. usually i use autoredraw in vb. at this point i am a little bit stuck with wm_paint ... anyway i wont extend functionality, because this was a test for me to become familiar with the windows gui api.
variable amplitude? you mean scale?
cause amplitude -> amplitude * trigonometric function
Any particular reason for not wanting to release the source? I find reading source code written by others to be very instructive.Hard wrote:actually i never wanted to rls the source, but as i am a gracefully person:
Windows calls WM_PAINT when the dialog has been covered by some other window and it needs to be repainted. Same thing with resize, minimize etc...Hard wrote: anyway i need sth like autoredraw. plot a graph and put an other form on top and then look at the graph again (its cleared). any ideas?
And the plotter does not process WM_PAINT messages. Depending on the kind of event that occured (the window gets maximized , part of the window that was covered gets uncovered) you'll have to repaint the entire window or part of it.
So to get automatic repaint you could:
- handle the WM_PAINT message by
- redrawing the graph upon reception of WM_PAINT.
You should save the entered math command (it's in FUNCTION_ENTERED isn't it?). That way you could handle WM_PAINT as if receiving a WM_COMMAND (as if the user pressed enter after entering a math command).
I presume you've got a copy of Petzolds (e)book ('Programming Windows')?
I removed the whole quote.Hard wrote:handling wm_paint as if receiving wm_command is way too slow. i use now a doublebuffer for the image and it works just fine now.
btw i havent read a single programming book :P
could you please remove the whole quote of my fist post. its just when i edit the first post ... you know ...
I found a great number of these when I was looking, it is hard to be unique enough to get noticed plotting. As a project though it looks like an intresting example or learning project.. I was looking for a customizable drum/piano roll structure and the only thing I found was (c) att not to be redistributed exc exc (keyedit). Seems like every program shouldn't have to do the roll from scratch but be able to steal the plotting functions ...
I am not knocking the program in fact plotting programs are useful. I was just saying there are alot of plotting programs that are available for use, not that it is useless.. gnu plot can even be used for alogrithmic composition.... I was just suggesting the other as a killer graphics app that would be more unique, one that probily doesn't belong in this thread maybe..
(steal as in drop it into a set of programs as a feature)
(steal as in drop it into a set of programs as a feature)
It may be possible to get it to output a wav file... It is probily simplier to use csound or pure data or a c programming library... I was looking at the later and was able to complie a sound lib with lua scripting (in c) but didn't get much further.. Are your basic skill up to writting wrappers, I may have the library for you (I will have to look it up on my computer though)