|
From: Daniel J S. <dan...@ie...> - 2014-11-09 07:27:04
|
On 10/31/2014 02:50 PM, Daniel J Sebald wrote: > On 10/31/2014 02:21 PM, Ethan A Merritt wrote: >> On Saturday, 01 November, 2014 03:57:01 Jun T. wrote: [snip] >>> When copying the plot to the clipboard, I prefer PDF format rather than >> >>> PNG (either on wxt or qt). Is this possible? >> >> I don't know. > > I think it would be possible to derive a custom button from the standard > button and add a right mouse click handler to the event table. How > about right mouse click on the clipboard icon opens a dialog or drop > down menu that configures the image format saved to file? To make > things more clear, the format, e.g., "png", "pdf", "svg" could be > superimposed on the clipboard icon with the format selection. And maybe > change the tool tip to read "Left Click: Copy, Right Click: Configure". Ethan and I looked at the clipboard a bit. He wondered if it even makes sense to put something in the clipboard of a particular format like PDF, or PNG. I'm starting to wonder that as well. There is a way to create a PNG type of bitmap and then place that in the clipboard. However, I think this is done by converting that PNG bitmap to an internal clipboard BITMAP. I can create custom data objects to place in the clipboard and assign them names like "png", but other programs don't seem to highlight the "Paste" text in the menu for a data format like that. (I.e., the calling program doesn't know what a "png" data object is.) Jun, do you have some program/application in mind that might accept PDF from the clipboard? So, right now the capability is there, but the utility of it is in question. But this brings to mind that HTML is one of the internal clipboard formats. I think I'm going to try figuring out how to place and HTML version of the plot in the clipboard along with the BITMAP (it can be multiple types of data). It seems to me that being able to paste into an email composer is one of the nicer features, as it means one doesn't have to first save the plot to a file, then to email composer. Dan |