[scilab-Users] gcf().resizefcn(h): How to refer to the triggering figure through h?
Serge Steer
Serge.Steer at inria.fr
Mon Jul 2 16:38:54 CEST 2012
Le 02/07/2012 13:57, Vincent COUVERT a écrit :
> Hello Samuel,
>
> Could you report a bug for this issue?
>
> Regards,
> Vincent
>
>
> Le 01/07/12 17:11, Samuel Gougeon a écrit :
>> Hello,
>>
>> Scilab 5.4.0 provides the new figure attribute resizefcn,
>> that is a callback called when the related figure is resized.
>>
>> However, this one is not necessarily the current one, in such
>> a way that resizefcn="do(gcf())" is not relevant.
>> It is possible to
>> - tag the figure
>> - to put the tag as input arg of the resizefcn callback
>> - to findobj(tag) inside the callback
>>
>> but is there a shorter way to refer to "this" figure, i mean a kind
>> of "this" implicit handle?
>>
>> Samuel
>>
>
It is also possible to add an argument to the resizefcn function which
will contain the win_number or the handle to the resized window.
Serge
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20120702/24a80ff4/attachment.htm>
More information about the users
mailing list