摘要 |
<p>Disclosed is a GUI platform-based drag-and-drop element programming method, which comprises: program analysis code obtaining and saving association elements of a programmable object to a relationship module component; when the programmable object is dragged, drawing and displaying a programmable object component, and displaying a list of the association elements such as attributes or functions according to information saved by the relationship module component; and when a programmable object component body or a member in the list that is displayed continues to be dragged and dropped to a control in an editing area, the control in the editing area performing modification on a format or an expression according to a content and a context of the object that is dragged, and thus forming new code in the editing area. Also disclosed is a GUI platform-based drag-and-drop element programming apparatus, enabling each module to be clear in function, easy to maintain, convenient to extend and able to implement a purpose of drag-and-drop element programming.</p> |