[Gambas-user] Error FileChooser?
Tony Morehen
tmorehen at ajm-software.com
Wed Jul 11 17:15:33 CEST 2018
Sorry for the blank post. Here's what's what I forgot:
I don't know what you are using to check the contents of the clipboard
but FileChooser does copy a list of file path and names to the clipboard
using the mime type "text/uri-list". Perhaps what you are using only
recognizes "text/plain"?
text/uri-list is a string with a line for each selected file in the
format "file://" & URLQuote(path) & CRLF
If the DirList (left panel) has the focus, the current directory is the
sole content of the list, again in the above format.
Multi=False has no impact other than to limit the number of selected
files to one.
Copy is straightforward, which, I assume, is why it's included in the
standard FileChooser menu. Paste, however, is much more complex and is
best handled by the overall program. ie FileChooser doesn't even
understand the difference between a simple copy and paste or cut and paste
On 2018-07-11 04:02 AM, Hans Lehmann wrote:
> Hello,
>
> if you select a file in FileChooser (FileChooser.Multi = False), you
> can also select the entry 'Copy' in the context menu. But since there
> is no menu entry 'Paste' and the ClipBoard is empty, I consider this
> menu entry an error. Has anyone gained other experience and can help me?
>
> With kind regards
>
> Hans
> gambas-book.net
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180711/3ffdbdcf/attachment.html>
More information about the User
mailing list