guides:programming:programmers_reference_manual:text_property_clipboard

TEXT property (Clipboard)

Gets or sets the data on the clipboard in a textual format.

The clipboard data represented as a text string.

DevelopmentRuntimeIndexedScaledSynthetic
N/AGet OnlyNoNoNo

When used with Get_Property the PS first looks to see if it can find a Unicode data string on the clipboard (CF_UNICODETEXT format), and return that. If this is not available it will look to return a CF_TEXT formatted string and return that instead.

When used with Set_Property the PS will place both CF_UNICODETEXT and CF_TEXT formatted data on the clipboard.

 
// TEXT property example

   //

   // Copy the contents of an EditLine control onto the clipboard

   // and then examine the text.

   

   // Select all the text

   Call Set_Property( @Window : ".EDITLINE_1", "SELECTION", 1 : @fm : 0xFFFF )

   

   // Copy it to the clipboard

   Call Exec_Method( @Window : ".EDITLINE_1", "COPY" )

   

   // Now get the text

   ClipText = Get_Property( "CLIPBOARD", "TEXT" )
 
 
 

FORMATLIST property, GETDATA method, SETDATA method

  • guides/programming/programmers_reference_manual/text_property_clipboard.txt
  • Last modified: 2023/10/25 10:50
  • by 127.0.0.1