Hi guys,
I have a button that it is suppose to copy a txt field content to clipboard.
Currently, the code is like this piece below, but when I click it doesn't copy the field to clipboard.
void clicked()
{
TextBuffer tb;
super();
if(!ExampleTable.FieldValue)
return;
tb = new TextBuffer();
tb.setText(ExampleTable.FieldValue);
tb.toClipboard();
}
I did a little debugging and the field value is there.
However, the tb.toClipboard(); is not doing anything.
Do you guys have any other approach?
Thanks