[Scilab-Dev] uiwait()

Samuel Gougeon sgougeon at free.fr
Thu Apr 14 00:20:37 CEST 2016


Le 13/04/2016 20:43, Samuel Gougeon a écrit :
> Hello Scilab devs,
>
> uiwait() is a builtin used once and only in the function 
> datatipCreatePopupMenu().
> Apparently, it is used to wait for an answer from the user/Context 
> menu before returning.
>
> Can this function be used for other uicontrols?
> I mean: it would be useful to be able to turn modal some (any?) ui object,
> for instance waiting for a button being clicked, for an item in a 
> drop-down
> list to be selected, etc, before going on with the processing.
>
> This function is not documented. Is it on purpose? Can it be used only on
> a uiContextMenu handle?
A trial answers:

--> uiwait(gca())

uiwait: Wrong type for input argument #1: A 'Uicontextmenu' handle expected.

A pity.
By the way, datatipCreatePopupMenu() seems to be some dead code,
with some other SCI\modules\graphics\macros\datatips\* macros.

SG

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/dev/attachments/20160414/96217730/attachment.htm>


More information about the dev mailing list