General callback for events on figures
Samuel Gougeon
sgougeon at free.fr
Wed Jul 25 22:46:59 CEST 2012
Hello,
Listing the properties of a figure with a recent Scilab release
(2012-07-20), one can see that after the recently introduced
resizefcn = ""
property as a callback called when the window is resized, another new one
closerequestfcn = ""
is now also listed.
So, i am wondering about the fact that each action on the window
should create a specific property, or not. Let's say that tomorrow
a user claims for a callback to be used when the window is iconified,
or when it is maximized, etc. Would we create other specific attributes
iconifyfcn = ""
maximizefcn = ""
etc..
What about rather introducing a single callback with a list of predefined
1st argument = name of the triggering action : "resize" "iconify"
"close" etc
that would be called each time that one of these events will occur?
Wouldn't it be a more general and more open solution?
Hoping to read other contributions
Best regards
Samuel Gougeon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120725/38a46a11/attachment.htm>
More information about the users
mailing list