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


Groups > comp.lang.clipper.visual-objects > #1139 > unrolled thread

OLEDragEvent:DataObject

Started byCarlos Rocha <carlos.rochaDELETETHIS@doossier.com>
First post2011-05-22 03:58 +0100
Last post2011-05-26 08:10 +0000
Articles 8 — 4 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  OLEDragEvent:DataObject Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-05-22 03:58 +0100
    Re: OLEDragEvent:DataObject Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-05-24 19:42 +0100
      Re: OLEDragEvent:DataObject Karl Faller <k.faller_withoutthat_@onlinehome.de> - 2011-05-24 21:33 +0200
      Re: OLEDragEvent:DataObject "Gerhard Bunzel" <g.bunzel@domonet.de> - 2011-05-24 22:10 +0200
        Re: OLEDragEvent:DataObject Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-05-24 23:21 +0100
    Re: OLEDragEvent:DataObject "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-26 00:25 +0000
      Re: OLEDragEvent:DataObject Carlos Rocha <carlos.rochaDELETETHIS@doossier.com> - 2011-05-26 01:46 +0100
        Re: OLEDragEvent:DataObject "Geoff Schaller" <geoffx@softwarexobjectives.com.au> - 2011-05-26 08:10 +0000

#1139 — OLEDragEvent:DataObject

FromCarlos Rocha <carlos.rochaDELETETHIS@doossier.com>
Date2011-05-22 03:58 +0100
SubjectOLEDragEvent:DataObject
Message-ID<4dd87c15$0$23419$a729d347@news.telepac.pt>
Hi,

What exactly is OLEDragEvent:DataObject and how can I use it?
I tried to create an IDataObject with it, but with no avail. It is a 
valid pointer, but points to what? I can see it beeing used in the SDK 
(GUI Classes) but the interesting part is inside VO28ORUN.

Thanks

-- 
Carlos Rocha

[toc] | [next] | [standalone]


#1165

FromCarlos Rocha <carlos.rochaDELETETHIS@doossier.com>
Date2011-05-24 19:42 +0100
Message-ID<4ddbfc58$0$23555$a729d347@news.telepac.pt>
In reply to#1139
No one knows? ÔÔ

On 22-05-2011 03:58, Carlos Rocha wrote:
> Hi,
>
> What exactly is OLEDragEvent:DataObject and how can I use it?
> I tried to create an IDataObject with it, but with no avail. It is a
> valid pointer, but points to what? I can see it beeing used in the SDK
> (GUI Classes) but the interesting part is inside VO28ORUN.
>
> Thanks
>

-- 
Carlos Rocha

[toc] | [prev] | [next] | [standalone]


#1166

FromKarl Faller <k.faller_withoutthat_@onlinehome.de>
Date2011-05-24 21:33 +0200
Message-ID<tu1ot6507mapclj0s4jbkqdpee8unag6ud@4ax.com>
In reply to#1165
Carlosm 
i take it, you read the help for OLEObject:CreateFromOLEDragEvent() ?

Sorry to be no more use...

Karl


On Tue, 24 May 2011 19:42:49 +0100, Rocha
<carlos.rochaDELETETHIS@doossier.com> wrote:

>No one knows? ÔÔ
>
>On 22-05-2011 03:58, Carlos Rocha wrote:
>> Hi,
>>
>> What exactly is OLEDragEvent:DataObject and how can I use it?
>> I tried to create an IDataObject with it, but with no avail. It is a
>> valid pointer, but points to what? I can see it beeing used in the SDK
>> (GUI Classes) but the interesting part is inside VO28ORUN.
>>
>> Thanks
>>

[toc] | [prev] | [next] | [standalone]


#1167

From"Gerhard Bunzel" <g.bunzel@domonet.de>
Date2011-05-24 22:10 +0200
Message-ID<irh3c8$p9j$1@news.m-online.net>
In reply to#1165
Hi Carlos,

...from the VO Programers Guide - more Infos you will find there

...
Given the example of an OLE container, which should only handle WordPad
documents, you would have to examine the value of OleDragEvent:ObjectName
as follows:

METHOD OleDragOver(oDE) CLASS StdDataWindow
  RETURN oDE:ObjectName == "WordPad Document"

By returning FALSE from OleDragOver(), the drag-and-drop cursor changes to
the no-drop shape, indicating to the user that the current object cannot be
dropped.  When the user releases the mouse button, and thus finishes the 
drag-
and-drop operation, OleDrop() is called:

METHOD OleDrop(oOleDragEvent) CLASS StdDataWindow
  LOCAL oOLE AS OLEObject
  IF (oOleDragEvent:ObjectName =="WordPadDocument")
    oOLE := OLEObject{self}
    oOLE:AllowInPlace := TRUE
    oOLE:AllowResize := TRUE
    IF oOLE:CreateFromOLEDragEvent(oOLEDragEvent)
      oOLE:Origin := oOLEDragEvent:Position
      oOLE:Show()
      oOLE:SetFocus()
      RETURN TRUE
    ENDIF
  ENDIF
RETURN FALSE

First, we check the object's type, because we only want to allow WordPad
objects.  Then, the object creation is done similarly to how InsertObject 
and
PasteSpecial are handled internally, except that we now use
CreateFromOLEDragEvent for creating the object.  Additionally, we get the
object's position from the event by initializing oOLE:Origin with
OLEDragEvent:Position.


HTH

Gerhard






"Carlos Rocha" <carlos.rochaDELETETHIS@doossier.com> schrieb im Newsbeitrag 
news:4ddbfc58$0$23555$a729d347@news.telepac.pt...
> No one knows? ΤΤ
>
> On 22-05-2011 03:58, Carlos Rocha wrote:
>> Hi,
>>
>> What exactly is OLEDragEvent:DataObject and how can I use it?
>> I tried to create an IDataObject with it, but with no avail. It is a
>> valid pointer, but points to what? I can see it beeing used in the SDK
>> (GUI Classes) but the interesting part is inside VO28ORUN.
>>
>> Thanks
>>
>
> -- 
> Carlos Rocha 

[toc] | [prev] | [next] | [standalone]


#1168

FromCarlos Rocha <carlos.rochaDELETETHIS@doossier.com>
Date2011-05-24 23:21 +0100
Message-ID<4ddc2f82$0$23560$a729d347@news.telepac.pt>
In reply to#1167
Thank you both for trying.

I'm aware of all that, but I don't want to create a OLE Object, I just 
want to decide what to do with the dragged object.

OLEDragEvent:DataObject points to "something" that is used to create the 
OLE Object. I believe it is somehow related to IDataObject (a "standard" 
object that is used to inform the target of what is beeing dragged), but 
I still couldn't find a way to use it.


> Hi Carlos,
>
> ...from the VO Programers Guide - more Infos you will find there
>
> ...
> Given the example of an OLE container, which should only handle WordPad
> documents, you would have to examine the value of OleDragEvent:ObjectName
> as follows:
>
> METHOD OleDragOver(oDE) CLASS StdDataWindow
>    RETURN oDE:ObjectName == "WordPad Document"
>
> By returning FALSE from OleDragOver(), the drag-and-drop cursor changes to
> the no-drop shape, indicating to the user that the current object cannot be
> dropped.  When the user releases the mouse button, and thus finishes the
> drag-
> and-drop operation, OleDrop() is called:
>
> METHOD OleDrop(oOleDragEvent) CLASS StdDataWindow
>    LOCAL oOLE AS OLEObject
>    IF (oOleDragEvent:ObjectName =="WordPadDocument")
>      oOLE := OLEObject{self}
>      oOLE:AllowInPlace := TRUE
>      oOLE:AllowResize := TRUE
>      IF oOLE:CreateFromOLEDragEvent(oOLEDragEvent)
>        oOLE:Origin := oOLEDragEvent:Position
>        oOLE:Show()
>        oOLE:SetFocus()
>        RETURN TRUE
>      ENDIF
>    ENDIF
> RETURN FALSE
>
> First, we check the object's type, because we only want to allow WordPad
> objects.  Then, the object creation is done similarly to how InsertObject
> and
> PasteSpecial are handled internally, except that we now use
> CreateFromOLEDragEvent for creating the object.  Additionally, we get the
> object's position from the event by initializing oOLE:Origin with
> OLEDragEvent:Position.
>
>
> HTH
>
> Gerhard
>
>
>
>
>
>
> "Carlos Rocha"<carlos.rochaDELETETHIS@doossier.com>  schrieb im Newsbeitrag
> news:4ddbfc58$0$23555$a729d347@news.telepac.pt...
>> No one knows? ÔÔ
>>
>> On 22-05-2011 03:58, Carlos Rocha wrote:
>>> Hi,
>>>
>>> What exactly is OLEDragEvent:DataObject and how can I use it?
>>> I tried to create an IDataObject with it, but with no avail. It is a
>>> valid pointer, but points to what? I can see it beeing used in the SDK
>>> (GUI Classes) but the interesting part is inside VO28ORUN.
>>>
>>> Thanks
>>>
>>
>> --
>> Carlos Rocha
>
>

-- 
Carlos Rocha

[toc] | [prev] | [next] | [standalone]


#1196

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-05-26 00:25 +0000
Message-ID<4ddd9ded$0$67775$c30e37c6@exi-reader.telstra.net>
In reply to#1139
Start from the start: what is the business problem you are trying to 
solve?

('cause I don't know why you want to use this if you are just doing 
regular drag and drop...)



"Carlos Rocha" <carlos.rochaDELETETHIS@doossier.com> wrote in message 
news:4dd87c15$0$23419$a729d347@news.telepac.pt:

> Hi,
>
> What exactly is OLEDragEvent:DataObject and how can I use it?
> I tried to create an IDataObject with it, but with no avail. It is a
> valid pointer, but points to what? I can see it beeing used in the SDK
> (GUI Classes) but the interesting part is inside VO28ORUN.
>
> Thanks
>
> --
> Carlos Rocha

[toc] | [prev] | [next] | [standalone]


#1198

FromCarlos Rocha <carlos.rochaDELETETHIS@doossier.com>
Date2011-05-26 01:46 +0100
Message-ID<4ddda31e$0$23560$a729d347@news.telepac.pt>
In reply to#1196
I'm trying to Drag an element from an ActiveX control, and I need to 
know what's beeing dragged, but OLEDragEvent:ObjectName and ServerName 
are both empty.
The Control uses standard OLE Drag&Drop and fills the needed data (a 
string in the case) in IDataObject, using SetData(1). It works as 
expected if the target is another ActiveX control prepared for 
OLEDragDrop. I'm able to detect the dragging over a ChildAppWindow, but 
I'm unable to check what it is. Finaly, I believe that OLEDataObject 
points to something useful.

On 26-05-2011 01:25, Geoff Schaller wrote:
> Start from the start: what is the business problem you are trying to solve?
>
> ('cause I don't know why you want to use this if you are just doing
> regular drag and drop...)
>
>
>
> "Carlos Rocha" <carlos.rochaDELETETHIS@doossier.com> wrote in message
> news:4dd87c15$0$23419$a729d347@news.telepac.pt:
>
>> Hi,
>>
>> What exactly is OLEDragEvent:DataObject and how can I use it?
>> I tried to create an IDataObject with it, but with no avail. It is a
>> valid pointer, but points to what? I can see it beeing used in the SDK
>> (GUI Classes) but the interesting part is inside VO28ORUN.
>>
>> Thanks
>>
>> --
>> Carlos Rocha
>

-- 
Carlos Rocha

[toc] | [prev] | [next] | [standalone]


#1202

From"Geoff Schaller" <geoffx@softwarexobjectives.com.au>
Date2011-05-26 08:10 +0000
Message-ID<4dde0afc$0$67779$c30e37c6@exi-reader.telstra.net>
In reply to#1198
Ok, now it is clearer - thank you.

And I don't think you can do what you want without knowing the precise 
structure of the contents.

This is C++ stuff you are going to need meinhard's help with.

Geoff



"Carlos Rocha" <carlos.rochaDELETETHIS@doossier.com> wrote in message 
news:4ddda31e$0$23560$a729d347@news.telepac.pt:

> I'm trying to Drag an element from an ActiveX control, and I need to
> know what's beeing dragged, but OLEDragEvent:ObjectName and ServerName
> are both empty.
> The Control uses standard OLE Drag&Drop and fills the needed data (a
> string in the case) in IDataObject, using SetData(1). It works as
> expected if the target is another ActiveX control prepared for
> OLEDragDrop. I'm able to detect the dragging over a ChildAppWindow, but
> I'm unable to check what it is. Finaly, I believe that OLEDataObject
> points to something useful.
>
> On 26-05-2011 01:25, Geoff Schaller wrote:
>
> > Start from the start: what is the business problem you are trying to solve?
> >
> > ('cause I don't know why you want to use this if you are just doing
> > regular drag and drop...)
> >
> >
> >
> > "Carlos Rocha" <carlos.rochaDELETETHIS@doossier.com> wrote in message
> > news:4dd87c15$0$23419$a729d347@news.telepac.pt:
> >
>
> >> Hi,
> >>
> >> What exactly is OLEDragEvent:DataObject and how can I use it?
> >> I tried to create an IDataObject with it, but with no avail. It is a
> >> valid pointer, but points to what? I can see it beeing used in the SDK
> >> (GUI Classes) but the interesting part is inside VO28ORUN.
> >>
> >> Thanks
> >>
> >> --
> >> Carlos Rocha
>
> >
>
>
> --
> Carlos Rocha

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web