Hi
I have a user object containing a datawindow which is a source for a drag and drop
The drop is supposed to occur in either another datawindow in the same object or in a datawindow in another window.
When the drag begin I show/hide some object in my userobject.
When the drop occurs I reverse the visible states.
So far so good.
But users being users they might drop on the mdi_1 object of the mdi window and I can't figure out a way to detect that. And I need to detect that to reverse the visible states.
Any ideas ?
Regards
(Just a thought)
---
int li_ret, li_fp
string ls_mode = ""
choose case m
case Begin!
ls_mode = "Begin!"
case End!
ls_mode = "End!"
case Cancel!
ls_mode = "Cancel!"
end choose
li_ret = super::drag(m)
li_fp = fileOpen("d:\drag.log",LineMode!,Write!,Shared!,Append!)
fileWrite(li_fp,this.dataobject + ":" + ls_mode + ":" + string(li_ret))
fileClose(li_fp)
return(li_ret)
---
Here is the different results I have in my log file
d_ng_bd_liste_factures_a_payer_dossier:Begin!:1
d_ng_bd_liste_factures_a_payer_dossier:Begin!:1
d_ng_bd_liste_factures_a_payer_dossier:Begin!:1
The return code 1=Canceled is for OLE Controls (according to PB17R3 documentation)
for other objects 1=SUCCESS
It's no big deal but I know I'll take some flack from users the day one of them drops the drag on mdi_1 :/