Hello Mark,
happy that with your simple example program symbolic IDs now work
at last almost as expected I tried to modify one insertItem() just
as test to have menu items with different names as the
corresponding methods. So I changed the line
> popup~insertItem(IDM_PASTE, IDM_PASTE, "Paste")
to:
popup~insertItem(IDM_PASTE, IDM_PASTE, 'put put', -
, , , .true, "Paste")
According to the ooDialog Reference the arguments are:
- idBefore [required] IDM_PASTE (where to insert, same
as following ID because it is the
first in this sub-menu)
- id [required] IDM_PASTE (the ID of this entry)
- text [required] 'put put' (the menu entry)
- state [optional] (empty, the default is sufficient)
- type [optional] (empty, I need no special type)
- byPosition [optional] (empty => ID is a resource ID)
- connect .true (as I assume the system
menu is already attached to a dialog, even I
build a sub-menu,
so the connection may be done immediately. I read the paragraphs
about connection request and autoconnection, but I assume
autoconnection may not work here as the text of the menu entry and
the method name are different.
- mName "Paste" (the name of the method)
I also took out the IDM_PASTE from the statement:
itemIDs = .set~of(IDM_COPY, IDM_CUT)
Anything else I left untouched.
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 menu
item is shown with text 'put put', I may select it, the menu
disappears, alas that's all, no method is called, not even an
error reported. Hard cheese!
I hope for two things: i) that I overlooked something not
described in the manual, or ii) that this is a bug. Otherwise I
still have the wrong way to deal with ooREXX/ooDialog.
Best,
M.
PS: If the popup menu is connected with insertPopup() the
connection request with insertItem() may fail, so I tested to
insert a menu item directly to the system menu with
sysMenu~insertItem(SC_MOVE, IDM_PASTE, "put put put", , , ,-
.true, "Paste")
It nicely shows up but no method is invoked when selected.
--------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users