Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #4179 > unrolled thread
| Started by | Phil bayard <philbayard@gmail.com> |
|---|---|
| First post | 2012-09-27 00:42 -0700 |
| Last post | 2012-09-27 02:12 -0700 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.lang.clipper.visual-objects
Drag&Drop from Outlook & Windows Live. Phil bayard <philbayard@gmail.com> - 2012-09-27 00:42 -0700
Re: Drag&Drop from Outlook & Windows Live. Phil bayard <philbayard@gmail.com> - 2012-09-27 00:43 -0700
Re: Drag&Drop from Outlook & Windows Live. "Wolfgang Riedmann" <wriedmann@gmail.com> - 2012-09-27 09:07 +0000
Re: Drag&Drop from Outlook & Windows Live. Phil bayard <philbayard@gmail.com> - 2012-09-27 02:12 -0700
| From | Phil bayard <philbayard@gmail.com> |
|---|---|
| Date | 2012-09-27 00:42 -0700 |
| Subject | Drag&Drop from Outlook & Windows Live. |
| Message-ID | <8a8d3884-1021-4cfa-b05f-0a62a8b62a34@googlegroups.com> |
Hi everyone,
i'm trying to allow drag & drop of mails into my VO app but i dont get the rightway to do it.
In fact, i make it work with thunderbird (enabling drag&drop, and handleling the .eml file)
But with outlook and WLM, the enableDragdropClient isnt enough. So i did enable the EnableOleDropTarget in my main windows.
Then i define the two method :
METHOD OLEDragOver(oOLEDragEvent) CLASS W_DOSSIERS
LOCAL oPoint as Point
LOCAL lRet as LOGIC
oOLEDragEvent:effect := DROPEFFECT_COPY
oPoint := oOLEDragEvent:Position
// Ist the mouse within the boundaries of the DropTarget -Control ?
IF Between ( oPoint:x , self:Origin:x ,self:Origin:x + self:Size:width ) .and. Between ( oPoint:y , self:Origin:y ,self:Origin:y+self:Size:Height )
lRet := true
ENDIF
// TRUE = "Copy"-Mousepointer will be shown
// FALSE = "No-Drop"-Mousepointer will be shown
RETURN lRet
METHOD OLEDrop(oOLEDragEvent) CLASS W_DOSSIERS
IF oOLEDragEvent:ObjectName == "Outlook"
MessageBox ( 0 , String2Psz ( "Dropped" ) , null , 0 )
ENDIF
[toc] | [next] | [standalone]
| From | Phil bayard <philbayard@gmail.com> |
|---|---|
| Date | 2012-09-27 00:43 -0700 |
| Message-ID | <280b47f1-c336-42f4-8dd9-7e5b5354f03d@googlegroups.com> |
| In reply to | #4179 |
Sorry, fail post. Here is the end of it : But the problem is that my oOLEDragEvent:ObjectName is always NULL_STRING. Did i do somethign wrong?
[toc] | [prev] | [next] | [standalone]
| From | "Wolfgang Riedmann" <wriedmann@gmail.com> |
|---|---|
| Date | 2012-09-27 09:07 +0000 |
| Message-ID | <acij9nF3j6cU1@mid.individual.net> |
| In reply to | #4179 |
Hi Phil, > i'm trying to allow drag & drop of mails into my VO app but i dont > get the rightway to do it. I would be very interested in this, but it seems it is not possible as OLE Drag&Drop is ways too complicated to implement it. I have lost several hours only to find out how to implement this, but wasn't succesful. Wolfgang
[toc] | [prev] | [next] | [standalone]
| From | Phil bayard <philbayard@gmail.com> |
|---|---|
| Date | 2012-09-27 02:12 -0700 |
| Message-ID | <fa6c94c1-7d05-4760-8b7d-7e9aa5a86645@googlegroups.com> |
| In reply to | #4182 |
Le jeudi 27 septembre 2012 11:07:03 UTC+2, Wolfgang Riedmann a écrit : > Hi Phil, > > > > > i'm trying to allow drag & drop of mails into my VO app but i dont > > > get the rightway to do it. > > > > I would be very interested in this, but it seems it is not possible as > > OLE Drag&Drop is ways too complicated to implement it. > > > > I have lost several hours only to find out how to implement this, but > > wasn't succesful. > > > > Wolfgang Seems like the OleDragOver isnt really working correctly or at least, the data of the Event aren't good. In order to do so, we need to recreate the all system of oledrag. Seems quite complicated !
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.clipper.visual-objects
csiph-web