Hello,
I've been trying to implement a drag and drop file feature on the CL_GUI_PICTURE, just like the event FILEDROP on CL_GUI_TEXTEDIT. That is, drop a file on a picture from your desktop/computer/etc and make the SAPGUI recognize it(at least recognize the FCODE).
First, I inherited CL_GUI_PICTURE, created a new event FILEDROP and redefined the methods DISPATCH and SET_REGISTERED_EVENTS to handle the new event. Inside the constructor I've tried to use the method SET_PROPERTY to register the filedrop( As far as I understood the cl_gui_textedit mechanism, that's the main method to generate the sy-ucomm %_GC<ID><EV><Cargo> response from the sapgui when the file is dropped).
When I try to run my program, I'm getting a message type X short dump because of the FMAC_FLUSH_CALL returning a sy-subrc = 3 ( property_set_error ). Debugging a little more I reached the FM OLE_FLUSH_CALL.. and that's a dead end since it does a RFC with the sapgui.
Maybe there is a easier way to do all of this and any help is appreciated!
Best regards,
Adriano SC