Hello Mark! > The documentation says about the connect argument:
I did not fully understand the difference between 'connection request' and 'autoconnect', as such it was some trial and error what I did - and failed. > [...] > before the *menu bar* has been attached... > > So, a .SystemMenu is not a .MenuBar. Ah, I neglected that detail as in object oriented environments the same command may act different according to the objects in question. Alas it seems not in this case. :( > Which implies that a using a connection request here will never > be fulfilled, because there is no MenuBar involved. Well, insertItem() returned '1' what stands for successful execution. Strange. > You need to do something similar to: > > *popup~insertItem(IDM_PASTE, IDM_PASTE, 'put put')* > [...] > *sysMenu~connectCommandEvent(IDM_PASTE, 'Paste')* Yes, thank you. Now it works. :) BTW, I tried it not only with a menu item in a popup menu but with one in the system menu too. Like in the popup menu I need to use IDs which are multibles of 16. Otherwise the items are shown but get no connection to a method. >> >The insertItem() executes with RC=1 what is described as normal if >> >there is no error (for me it's not, for me RC=0 is OK), > > The insertItem() method is not documented to return a return code, it is > documented to return .true or .false. It returns .true on success and > .false on error. Sorry, I mixed up returned value and RC. Thank you for clarification. Best, M. -------------------------------------------- Kostenlose E-Mail-Adresse mit unbegrenztem Speicherplatz für E-Mails, Free SMS und OK-Drive, der Online-Festplatte. Sicher Dir jetzt Deine Wunschadresse @ OK.de: www.ok.de ------------------------------------------------------------------------------ Monitor your physical, virtual and cloud infrastructure from a single web console. Get in-depth insight into apps, servers, databases, vmware, SAP, cloud infrastructure, etc. Download 30-day Free Trial. Pricing starts from $795 for 25 servers or applications! http://p.sf.net/sfu/zoho_dev2dev_nov _______________________________________________ Oorexx-users mailing list Oorexx-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/oorexx-users