To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / 8668
8667  |  8669
Subject: 
Re: dragNdrop (Was: Ldglite must be faster)
Newsgroups: 
lugnet.cad
Date: 
Sat, 7 Sep 2002 16:01:05 GMT
Viewed: 
1216 times
  
"Don Heyse" <dheyse@hotmail.spam.go.away.com> skrev i meddelandet
news:H218Ln.8Hn@lugnet.com...

Anyhow, I was wondering what's in those two WM_COPYDATA messages
from LDList.

If you read Pascal, take a look at the LDList source, it is both source and
sink for the D&D of LDRAW parts that I (and Steve) defined. Otherwise I have
to dig out the old mails exchanged between me and Steve - there's never been
a complete writeup of the 'protocol', it just evolved...


Is there some reason why LDList uses that instead of WM_DROPFILES?

For simplicity's sake. A WM_COPYDATA message was very simple to program, no
need for me to read up on COM D&D, which I had never done at the time (and I
still think it's *real* overkill for sending a little text between two
applications).

Also, a side track of LDList, that's never been utilized, is the possibility
to limit your pieces to a certain 'set', decrementing the count when you
drag a piece out of LDList, incrementing again if the editor program sends
the right message back.

The important thing with using messages of our own, is that you don't *have*
to physically drag something with the mouse, and drop somewhere else. The
messages may be generated in any way (for example by the 'delete' button in
the editor).

--
Anders Isaksson, Sweden
BlockCAD:  http://user.tninet.se/~hbh828t/proglego.htm
Gallery:   http://user.tninet.se/~hbh828t/gallery/index.htm



Message has 2 Replies:
  Re: dragNdrop (Was: Ldglite must be faster)
 
(...) I examined the source (aren't you glad you posted it) and now I can drag in a part from LDList (cool!), but I'm still not sure about the rest of the 'protocol'. What's the point of the X and Y coordinates? And is it the empty message that (...) (22 years ago, 9-Sep-02, to lugnet.cad, lugnet.cad.dev)
  Re: dragNdrop (Was: Ldglite must be faster)
 
Happy day... inspired, I learned how to implement window drag & drop in BrickDraw3D, and made part list and part viewer windows send each other a string (part id). Still no dragging into a model, but, it's a start. For the curious, I made (...) (22 years ago, 10-Sep-02, to lugnet.cad)

Message is in Reply To:
  dragNdrop (Was: Ldglite must be faster)
 
(...) Let me clarify this. I think I have drag-N-drop from Windows Explorer under control. That uses WM_DROPFILES messages and the protocol is described on the internet. I'll have to see what I can do when someone drags a whole list of part files (...) (22 years ago, 6-Sep-02, to lugnet.cad)

39 Messages in This Thread:















Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR