In truth of course, the user is just moving the mouse with a button held down, however the terminology used (and maybe the cursor image displayed) upholds the user’s view. As far as the user is concerned, they are under the impression that they are physically dragging the source control (or information shown on it) onto the target control. The control that initially gets clicked on is called the source of the drag, or drag source, and the one under the mouse when the button is released is called the target, drag target or drop target. A drag and drop operation relies upon the user clicking the left (or sometimes the right) mouse button down on some control, then moving their mouse (whilst keeping the button held down) over to another control, and finally releasing the mouse button. DELPHI CARET POSITION TEDIT DOWNLOADYou can download the files that accompany this paper by clicking here.Ĭomponent Drag & Drop or "Here Thar Be Drag (ons)"īoth the VCL and CLX have built-in facilities for supporting dragging and dropping within a given application. Then it moves on to look at how custom drag objects can be used to enhance the appearance of drag operations, and also how they can simplify more complex drag operations. It looks firstly at the basic component library support for dragging and dropping within a Delphi application. This paper will investigate the subject of drag and drop in Delphi/Kylix applications. Whilst using drag and drop in a Delphi/Kylix application is made very easy by the component library support, little seems to be written on the subject, which makes doing more interesting variations on the standard theme more complicated. With the introduction of CLX in Delphi 6 and Kylix 1, the basic principles of drag and drop remain the same, although as we will see, the more advanced areas need to be treated differently. It was enhanced just a little in the first 32-bit version, Delphi 2 in 1996, but apart from that, the basic mechanisms have remained much the same. The Delphi VCL has supported drag and drop operations ever since version 1, way back in 1995. It will be appreciated however big or small it might be and will encourage Brian to continue researching and writing about interesting subjects in the future. If you find this article useful then please consider making a donation. Component Drag & Drop or "Here Thar Be Drag (ons)". DELPHI CARET POSITION TEDIT PROFESSIONALImplementing Professional Drag & Drop In VCL/CLX Applications
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |