@orgin + centaurz
What's that GM_HITTEST of gadget.class ? Is it any help ?
One idea: enable RMB trap when mouse pointer is over your window and disable it when mouse pointer is somewhere else to get normal menus (SetWindowAttrs()). Use the last selected item in listbrowser no matter where pointer is. Or make the popup menu to apply to all selections (not a single file) (you want it that way for cut-copy-paste
.
I've wanted to ask OS4 devs to create a drawer.gadget. But I've been trying to learn how to make my own gadget classes lately so if I could make a drawer.gadget myself. (But I'm not working on anything too much currently. I'm too tired to do much coding, too many projects of my own, motivation low and I have many other things to do in my life.)