Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12163

Re: Drag Outlook message into Cavo application

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: Drag Outlook message into Cavo application
Date 2019-01-14 09:29 +0100
Message-ID <ga2vjtF6t0tU1@mid.individual.net> (permalink)
References <6aa814d4-1caf-47e9-82e8-ac37ac941a0f@googlegroups.com> <d5a7f5e3-9c42-48f8-9266-7edc26284543@googlegroups.com>

Show all headers | View raw


Hi Ben,

I have now tried to implement Outlook Drag&Drop into my application.

As start base, I have used the OleCont sample. But unfortunately I have
not been able to make the application accept the Drop operation from
Outlook.
In the window init method, the call 
  self:EnableOleDropTarget(TRUE)
was already there, but when dragging from Outlook the mouse pointer
shows the "disabled" icon, and the drop event does not even arrives at
the window level.

Is there anything I can do?

Microsoft documentation is not very helpful...

Thank you very much!

Wolfgang


BenWoestenburg@ziggo.nl wrote:

> Hello John,
> 
> I have written this some time ago:
> 
> METHOD OLEDrop( oOLEDragEvent) CLASS ScrnKlantStuk
> 
> LOCAL oTreeViewItem AS TreeViewItem
> LOCAL oPoint AS Point
> LOCAL oScrnKlantStukMail AS ScrnKlantStukMail 
> LOCAL oScrnSaveMail AS ScrnSaveMail 
> 
> LOCAL oMails AS OutlookSelection
> LOCAL oMail AS OutlookMailItem
> LOCAL nTel AS WORD
> LOCAL lCont AS LOGIC
> 
> IF oOLEDragEvent:ObjectName=="Outlook"
> 	oPoint:=oOLEDragEvent:Position
> 
> 	//in listview?
> 	lCont:=( Between ( oPoint:x , SELF:ListView:Origin:x
> ,SELF:ListView:Origin:x + SELF:ListView:Size:width ) .AND. ;
> Between ( oPoint:y , SELF:ListView:Origin:y , SELF:ListView:Origin:y
> + SELF:ListView:Size:Height ))
> 
> 	//nee in treeview?
> 	IF ( !lCont)
> 		oTreeViewItem:=SELF:Treeview:GetItemAtPosition( oPoint)
> 		lCont:=!Empty( oTreeViewItem)
> 	ENDIF
> 
> 	//1 van de 2
> 	IF lCont
> 		oOLEDragEvent:effect:=DROPEFFECT_COPY
> 
> 		oScrnKlantStukMail:=ScrnKlantStukMail{ SELF,,, {SELF}}
> 		oScrnKlantStukMail:OutLook:=Outlook{}
> 
> 		IF ( !oScrnKlantStukMail:OutLook:finit)
> 			FoutBoks( SELF, "Openen Outlook", "Outlook kan niet worden
> geopend, E-mail kan niet worden toegevoegd aan het dossier") 		ELSE
> 			oMails:=oScrnKlantStukMail:OutLook:ActiveExplorer:Selection
> 			FOR nTel:=1 TO oMails:Count 
> 				oMail:=oScrnKlantStukMail:OutLook:ActiveExplorer:Selection:Item(
> nTel)
> 
> 				oScrnKlantStukMail:BuildListviewLine( oMail, TRUE)
> 				IF ( oMail:Attachments:Count > 0)
> 					oScrnSaveMail:=ScrnSaveMail{ SELF}
> 					oScrnSaveMail:Show()
> 
> 					IF ( oScrnSaveMail:Result==1)
> 						IF ( oScrnSaveMail:SaveMail)
> 							oScrnKlantStukMail:ToevStuk( oMail)
> 						ENDIF
> 						IF ( oScrnSaveMail:SaveBijl)
> 							oScrnKlantStukMail:ToevBijl( oMail)
> 						ENDIF
> 					ENDIF
> 
> 				ELSE
> 					oScrnKlantStukMail:ToevStuk( oMail)
> 				ENDIF
> 			NEXT 
> 		ENDIF
> 
> 		oScrnKlantStukMail:EndWindow()
> 	ENDIF
> ENDIF
> 
> RETURN TRUE
> 
> The mails are dropped on a listview. oScrnKlantStukMail is only
> created to use some of its procedures; it is never shown.
> 
> 
> Regards.
> 
> Ben Woestenburg
> 
> 
> 
> 
> 
> 
> Op woensdag 24 oktober 2018 16:51:45 UTC+2 schreef Sjonnie D:
> > Hi all,
> > We are changing our mailclients from Thunderbird to Outlook 2016.
> > In outlook we could very ease drag an emailmessage into our Cavo
> > Application.  For Outlook we need to use the OleDragEvent.
> > Unfortunately, we are unable to save the file from the ole object
> > in Cavo.  We have a working example in C#, but we do not manage to
> > pass the OleDragEvent into C#, for further processing. The file
> > must be dropped on a Cavo window.
> > 
> > Is there anybody here who has this working or who can give us clue?
> > 
> > Kind regards,
> > John Dekker



-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Drag Outlook message into Cavo application Sjonnie D <sjonnied@gmail.com> - 2018-10-24 07:51 -0700
  Re: Drag Outlook message into Cavo application BenWoestenburg@ziggo.nl - 2018-10-25 03:42 -0700
    Re: Drag Outlook message into Cavo application Sjonnie D <sjonnied@gmail.com> - 2018-10-25 05:30 -0700
    Re: Drag Outlook message into Cavo application "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-01-14 09:29 +0100
      Re: Drag Outlook message into Cavo application Gerhard Bunzel <g.bunzel@domonet.de> - 2019-01-27 16:34 +0100
        Re: Drag Outlook message into Cavo application "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-01-28 07:51 +0100
          Re: Drag Outlook message into Cavo application szepligeti@gmail.com - 2019-01-28 07:15 -0800
            Re: Drag Outlook message into Cavo application "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-01-29 04:48 +0100
              Re: Drag Outlook message into Cavo application szepligeti@gmail.com - 2019-01-28 23:15 -0800
                Re: Drag Outlook message into Cavo application "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-01-30 05:06 +0100
                Re: Drag Outlook message into Cavo application szepligeti@gmail.com - 2019-01-29 23:34 -0800
        Re: Drag Outlook message into Cavo application Sjonnie D <sjonnied@gmail.com> - 2019-02-07 08:31 -0800
  Re: Drag Outlook message into Cavo application BenWoestenburg@ziggo.nl - 2018-10-25 05:46 -0700
    Re: Drag Outlook message into Cavo application Mariette <mariette@kleijn.com> - 2018-10-29 08:36 -0700
      Re: Drag Outlook message into Cavo application BenWoestenburg@ziggo.nl - 2018-11-01 02:40 -0700

csiph-web