Hi,
I guess I am a victim of fake news? So are you saying that FORMAT is not actually a format, but BINARY? So if the data type isn't TEXT, WMF, EMF, or IMAGE "format", but is BINARY "format", I should set FORMAT=YES followed by FORMATDATA=&someBinaryData and FORMATSIZE=sizeOf(someBinaryData) to make it work? And yes, CF_PALETTE is an enumeration value in winbase.h to indicate the TYPE of data being copied to/from the Windows clipboard, so using the term "FORMAT" as a data type instead using it to refer to an actual data format is misleading, but I think I understand what IUP means by "FORMAT" now. This needs to be clarified in the documentation, that's all I'm saying. Also, I can see in the Notes that the TEXT "format" (as opposed to the FORMAT "format") is copied to the clipboard according to the previous contents of the clipboard, so if the previous clipboard contents was OEM text, you can only copy OEM text to/from the clipboard. I think I understand that too, but programmers need to be aware that the only kind of Unicode text the WinXP Windows clipboard supports is "text/plain;charset=ISO-10646-UCS-2", so anything not in the BMP won't translate properly from UTF-8. Regards, Andrew On 2020-02-26 at 3:16 PM, Antonio Scuri <antonio.sc...@gmail.com> wrote: Hi, FORMAT is a string, as described. Can be any string. FORMATDATA is a raw data. Can be any raw data. The application can use it to implement a custom clipboard data transfer. CF_PALETTE and others, are numbers. They are not related with FORMAT. Best, Scuri Em qua, 26 de fev de 2020 17:59, Andrew Robinson <arobinso...@cox.net> escreveu: Hi Antonio, So what is the syntax for FORMAT? Would it conform to Windows and accept things like CF_PALETTE or CF_TIFF or CF_WAVE and so on, or is it something else? Regards, Andrew On 2020-02-26 at 11:10 AM, Antonio Scuri <antonio.sc...@gmail.com> wrote: Hi, First, FORMAT in IupClipboard is NOT related to the FORMAT attribute in IupText. This is a custom format string. The application copy and paste functions must know what it is copying and pasting in FORMATDATA based on that string. In other words you can copy&paste any data you want, considering you know what is the data. Best, Scuri Em ter., 11 de fev. de 2020 às 22:19, Andrew Robinson <arobinso...@cox.net> escreveu: Thank you Ariset. That information should also be listed or linked under the Resources>IupClipboard text where it would do the most good. Regards Andres On 2020-02-11 at 2:24 PM, Ariset <irt...@gmail.com> wrote: > in the oficial documentation http://webserver2.tecgraf.puc-rio.br/iup/ > follow links Controls>Standard>IupText>FORMATTING > > 2020-02-05 16:05 GMT-03:00, Andrew Robinson <arobinso...@cox.net>: >> Ola Antonio, >> >> >> I was trying to determine what "FORMAT", "FORMATAVAILABLE" and "FORMATDATA" >> were defined as, but I can't seem to find anything. I thought it would be >> listed under Attributes --> Globals in the main documentation online, but I >> don't see where it is mentioned. Then I noticed that these attributes are >> listed as only being available "since 3.7", but since the latest version of >> IUP is 3.28, we aren't quite there yet. So what year will version 3.7 >> finally >> be released so these attributes will be documented and available? >> >> >> Regards, >> Andres >> _______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users