The way is to use IupShow. Yes, it will not work with a IupMenu, so the idea is to use an IupDialog with no decorations with some control inside, maybe a IupList to display your list of options and allow typing some text.
For instance: Ihandle* dlg = IupDialog(NULL); IupSetAttribute(dlg, "RESIZE", "NO"); IupSetAttribute(dlg, "MENUBOX", "NO"); IupSetAttribute(dlg, "MAXBOX", "NO"); IupSetAttribute(dlg, "MINBOX", "NO"); IupSetAttribute(dlg, "NOFLUSH", "Yes"); IupSetCallback(dlg, "K_ESC", (Icallback)iDropButtonDialogKeyEscCB); You can also monitor the focus to see if the user clicked outside the dialog. Best, Scuri Em sex, 13 de set de 2019 às 17:16, Johann Philippe via Iup-users < iup-users@lists.sourceforge.net> escreveu: > Dear all, > > I'm currently using IupPopup with IupMenu to display an autocompletion > interface for IupMatrix. I'm currently having some troubles : In my > project, the menu is supposed to be modified or completely re-created if > the user continues typing in matrix cell (like a proper auto completion > system). So, the modal state of popup is kind of a trouble for me. > > I have a few options : > -Is there a way to do the same with a non modal interface ? IupShow > doesn't seem to work with a Menu. > -Since there is no keyboard callback in Menu, i guess it's not possible to > implement such a thing here ? > -Or maybe there are some Dialog attributes that could allow to do the same > interface, using then IupShow ? > -(unlikely) Maybe an autocompletion system is already implemented in > IupMatrix cells ? > -Anything else... > > Thanks in advance > > Johann > > _______________________________________________ > Iup-users mailing list > Iup-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/iup-users >
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users