Dragging and dropping to Paint or Draw iconbar icon
Sprow (202) 1158 posts |
Both Paint and Draw (in their draggy droppy guise) seem to cause me confusion I’m not sure I used to suffer from. Let me try to explain: Paint The same seems to happen even dropping the sprite back onto Paint’s iconbar icon. Dragging the same individual sprite to the Filer does what I think I expected: a file is created with 1 sprite in it (called Selection). Draw Dragging the same individual object to the Filer does what I think I expected: a file is created with 1 rectangle in it (called Selection). The light bedtime read Drag & Drop spec doesn’t specifically mention iconbar drops, but 4.5.1.2 does mention To the destination task, a drop will appear the same as a non-drag-and-drop DataSave (inter-application data transfer) operation so I’d have thought Draw and Paint should just see my drop as though loading the respective data from a file or via RAM transfer. I believe that’s how the Filer is taking it. The excellent MsgMon does appear to show the beginnings of a DataSave exchange but then it just dries up. While I probably muddied the description talking about StrongEd and TechWriter these don’t appear to be important – having quit them both Draw and Paint don’t accept things they could open via drop, whereas the Filer does. |
Steve Pampling (1551) 8172 posts |
Interesting that you should mention Filer and the incorrect action of the file open being done by another App. While playing with simple key shortcuts for Filer I hit an apparent StrongED quirk of multiple instantiations of StrongED on repeated Help file opening and when I made sure the system was unaware of StrongED the help text file was opened in Armalyser, hide that and it was offered to another. |
Andy Vawer (5817) 28 posts |
Sorry, I hadn’t spotted this thread! There’s an issue whereby the messages sent (Message_Dragging and Message_DataSave) don’t have the icon bar icon handle added when sending to the icon bar (window -2). The ‘victim’ task is therefore whatever was kicking around in R3 at the time the call was made. Draw and Paint share a very similar codebase for the new drag and drop bits which is why you’re getting the same issue with both of them. The same issue applies to the drag/drop bit of the Wimp for writable icons (which was based on the code for Draw and Paint). I’ve submitted a patch for these three (Draw, Paint and the Wimp) which should hopefully rectify this. Thanks! |