Hi Team,
have attached herewith a new release of the create callout functions where I tried to add the features described in my previous post, so:
0-
Add the trasparency effect to the text placed on the XY area using the Alvaro's method (which I call "Ink jet" method). This is a very interesting and intelligent technique in which only non-white pixels are displayed but applying it to a long text string has been proven to be unfeasible because the worksheet execution times increase too much.
1-
Add more fonts from the Alvaro's file and some additional ones with a "Technic" style.It is now possible to select a font from the 9 ones listed herewith.
the files (.png) with each font data are zipped here
FontsDataFile.zip (45kb) downloaded 2 time(s). and each font can be selected in the worksheet in this way
These files must be unzipped into a directory along with the following workseet
XYPlot - Callout_with_Scalable monospaced BMP fonts_Ver1_3S.sm (2,317kb) downloaded 1 time(s)..
It has not been possible to embed the content of all these external files in the worksheet ( as initially desired ) because again its execution times increase too much.
2-Adding the coordinate of the arrow part of the callout as arguments of the final function used for their drawing .
Done3-Moreover I would like to minimize the Inputs for the creation of a callot using the method seen in some examples from UNI related to Shapes drawing ( basically defining in this way a set of default arguments that can optimize the graphical look of the callout itself and speedup its creation ).
DoneFor what concern this last point I have the following question. Is it possible in a user defined function that has for instance 7 arguments ( see herewith what I have done for the CreateCallout function in the worksheet attached )

define a default in a central position but NOT beeing obliged to accept
already all the defaults related to the arguments at its right ??
I mean if I wonna define that the default just for the argument FontFamily is Arial and for all the other arguments at its right I am free to place whatever I want; how can I write the expression of the user function ?
Or this is not possible to accomplish and simply I must define in the function body at the beginning (usually) that if the argument of FontFamily is "-" or something else that I have pre-defined in advance and that means a default value for the argument in that position I will consider Arial as the FontFamily passed value . Hope that I was able to explain this issue quite well .
Thanks in advance for any help and best regards
Franco
P.S. Herewith some usage examples, they aren't done with the last release of the worksheet, other examples screenshot are in an area at the bottom part of the worksheet



Edited by user 05 February 2025 20:29:26(UTC)
| Reason: Added examples