On 2012-05-07 17:29:41 -0300, Leonardo M. Ramé wrote: > On 2012-05-07 17:12:46 -0300, Leonardo M. Ramé wrote: > > On 2012-05-07 16:59:06 -0300, Leonardo M. Ramé wrote: > > > Hi, I'm implementing a Copy to clipboard function to an application. It > > > has to copy the contents of a TPaintBox's Canvas into the Clipboard, but > > > found a bug, it copies the windows over the Paintbox too. > > > > > > I've attached a screenshot showing a popup over the TPaintbox that's > > > also copied with the paintbox's canvas. > > > > > I must add this problem only happens on Windows. I've also tested it > > using Linux and Wine and it works ok. > > > > I've attached a sample project, containing a TPaintBox with an OnPaint > event which just paints it in red color, then, I placed a TButton in the > middle of the paintbox. > > The onClick event of the button copies the contents of the PaintBox to > the clipboard. But, as you can see, it also copies the button. > > As the button is not part of the clipboard (it is over it, not part of > it), it shouldn't be copied. >
I've registrerd this in Mantis: http://mantis.freepascal.org/view.php?id=21981 -- Leonardo M. Ramé http://leonardorame.blogspot.com -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
