mirror of
https://github.com/Rayerd/dfl.git
synced 2025-04-26 13:09:57 +03:00
Fix Clipboard about text data, but Bitmap is not yet.
This commit is contained in:
parent
fa984dcd11
commit
e839be61a3
3 changed files with 67 additions and 156 deletions
|
@ -58,15 +58,10 @@ class MainForm : Form
|
|||
_copy.click ~= (Control c, EventArgs e)
|
||||
{
|
||||
_picturebox.image = null;
|
||||
static if (1) // BUG: workaround
|
||||
{
|
||||
Clipboard.setString(_textbox.text, false);
|
||||
}
|
||||
else
|
||||
{
|
||||
// TODO: Don't work
|
||||
static if (1)
|
||||
Clipboard.setString(_textbox.text);
|
||||
else // same as
|
||||
Clipboard.setData(DataFormats.stringFormat, new Data(_textbox.text));
|
||||
}
|
||||
};
|
||||
|
||||
_copyBitmap = new Button();
|
||||
|
@ -87,7 +82,7 @@ class MainForm : Form
|
|||
}
|
||||
else
|
||||
{
|
||||
Clipboard.setImage(bitmap, false); // TODO: Don't work
|
||||
Clipboard.setImage(bitmap); // TODO: Don't work
|
||||
}
|
||||
_picturebox.image = bitmap;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue