Silverfrost Forums

Welcome to our forums

calback from %pl graphics region

10 May 2007 7:31 #1907

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

10 May 2007 11:49 #1909

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.

10 May 2007 11:57 #1910

Thanks, when is the next version od salflibc available?

regards

Albert

10 May 2007 4:15 #1911

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.

10 May 2007 4:37 #1912

Thanks Paul, I'm using the personal edition, I'm afraid the the full price version is out of my reach.

Regards

Albert

2 Jun 2010 8:23 #6487

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

3 Jun 2010 5:45 #6488

%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.

Please login to reply.