Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #13413
| From | Jamal <nospam@example.com> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: Drag n Drop... was working and not now... why |
| Date | 2021-08-14 00:40 -0400 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <sf7hfi$th$1@gioia.aioe.org> (permalink) |
| References | <7868d6b6-df60-4c64-9d88-097012f1c119n@googlegroups.com> |
If you run the application from the IDE, the drag/drop does not work!
You need to generate the EXE then run it. It works for me :)
Jamal
On 8/13/2021 8:17 PM, Sherlock wrote:
> VO'ers.
>
> Simple code... why does DROP() not get called. I drag a file from Explorer, see the ICON with the [ + ] for drag n drop... but drop does not execute.
> Have other code that used to work and wonder why now. Yet my Browser drag and drop works. My original code was TEXTcontrol on Dialog window. Tried the STYLE.. tried lots of things. aargh..
>
> Help... has to be something simple
>
> Phil
>
> CLASS MainWindow INHERIT DATAWINDOW
>
> PROTECT oCCEndWindow AS PUSHBUTTON
> PROTECT oDCFixedText1 AS FIXEDTEXT
> //{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
>
> METHOD Drop(oDragEvent) CLASS MainWindow
> ? "METHOD Drop"
> SUPER:Drop(oDragEvent)
>
> ? oDragEvent:FileCount
> ? oDragEvent:FileName(1)
>
> RETURN SELF
>
> METHOD Init(oWindow,iCtlID,oServer,uExtra) CLASS MainWindow
>
> SELF:PreInit(oWindow,iCtlID,oServer,uExtra)
>
> SUPER:Init(oWindow,ResourceID{"MainWindow",_GetInst()},iCtlID)
>
> oCCEndWindow := PushButton{SELF,ResourceID{MAINWINDOW_ENDWINDOW,_GetInst()}}
> oCCEndWindow:HyperLabel := HyperLabel{#EndWindow,"Close",NULL_STRING,NULL_STRING}
>
> oDCFixedText1 := FixedText{SELF,ResourceID{MAINWINDOW_FIXEDTEXT1,_GetInst()}}
> oDCFixedText1:HyperLabel := HyperLabel{#FixedText1,"TODO: Add server, controls "+_CHR(38)+_CHR(38)+" event handlers",NULL_STRING,NULL_STRING}
>
> SELF:Caption := "DataWindow Caption"
> SELF:HyperLabel := HyperLabel{#MainWindow,"DataWindow Caption",NULL_STRING,NULL_STRING}
> SELF:QuitOnClose := TRUE
>
> IF !IsNil(oServer)
> SELF:Use(oServer)
> ENDIF
>
> SELF:PostInit(oWindow,iCtlID,oServer,uExtra)
>
> RETURN SELF
>
> METHOD PostInit(oWindow,iCtlID,oServer,uExtra) CLASS MainWindow
> SELF:EnableDragDropClient(TRUE)
> //
> // SELF:oDCFixedText1:SetStyle(WS_EX_ACCEPTFILES , TRUE)
> // SELF:SetStyle(WS_EX_ACCEPTFILES , TRUE)
> //
> RETURN SELF
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Drag n Drop... was working and not now... why Sherlock <sherlock@sherlock.com.au> - 2021-08-13 17:17 -0700
Re: Drag n Drop... was working and not now... why Jamal <nospam@example.com> - 2021-08-14 00:40 -0400
Re: Drag n Drop... was working and not now... why Phil McGuinness <sherlocksoftware@gmail.com> - 2021-08-14 04:02 -0700
csiph-web