View previous topic :: View next topic |
Author |
Message |
acp693
Joined: 04 Sep 2006 Posts: 56
|
Posted: Thu May 10, 2007 8:31 am Post subject: calback from %pl graphics region |
|
|
Is it possible to have a callback from a %pl graphics region?
For example, I plot results based on calculations onto a %pl region and would like to be able to position the mouse over certain peaks on the plot and have a textbox tell me the values on the plot.
Looking through the documentation it doesn't seem as though it is possible.
I did start to write my own graphics routines based on %gr, as that surface allows callbacks. I managed some simple plots with axis's, but whenever I implemented the callback with the mouse to indicate values on the plot the whole program became unstable, with irregular crashing of the application.
Also, as I plan to do more complicated graphs in the future, I would very much like to be able to use the simpleplot library.
Many thanks
Albert |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu May 10, 2007 12:49 pm Post subject: |
|
|
Although it is not documented, %pl should support a callback function but a simple bug in the library prevents it from being accepted.
I have fixed the bug so you will be able to implement a callback with the next release of salflibc.dll.
The callback reasons include MOUSE_LEFT_CLICK and MOUSE_RIGHT_CLICK. |
|
Back to top |
|
 |
acp693
Joined: 04 Sep 2006 Posts: 56
|
Posted: Thu May 10, 2007 12:57 pm Post subject: |
|
|
Thanks, when is the next version od salflibc available?
regards
Albert |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu May 10, 2007 5:15 pm Post subject: |
|
|
With the next full release of FTN95 which could be towards the end of the year.
If you need it straight away you could negotiate a fee with Silverfrost. |
|
Back to top |
|
 |
acp693
Joined: 04 Sep 2006 Posts: 56
|
Posted: Thu May 10, 2007 5:37 pm Post subject: |
|
|
Thanks Paul,
I'm using the personal edition, I'm afraid the the full price version is out of my reach.
Regards
Albert |
|
Back to top |
|
 |
aebolzan
Joined: 06 Jul 2007 Posts: 229 Location: La Plata, Argentina
|
Posted: Wed Jun 02, 2010 9:23 pm Post subject: |
|
|
I have just read in this topic that it is now possible to use a call-back function in the %pl window and from the Help file it is stated that "%pl is designed to be similar to %gr". Does it mean that one can use the mouse input to draw a line or a rectangle as in %gr window? Or what can I really do inside a %pl window with call-backs? I am asking this because I was trying to draw a line inside %pl following the examples given for %gr and it did not work. Probably I am missunderstanding something....
Agustin |
|
Back to top |
|
 |
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 8210 Location: Salford, UK
|
Posted: Thu Jun 03, 2010 6:45 am Post subject: |
|
|
%pl does not provide the same functionality as %gr. What you can do in a callback will be limited to detecting mouse clicks (say) and providing your own code in response. |
|
Back to top |
|
 |
|