[Gambas-user] Clipboard question

Fabien Bodard gambas.fr at ...626...
Thu Mar 10 19:14:00 CET 2016


if you are selecting the commentate with the mouse ... then the
secondary clipboard will be filled with it... replacing the latin one

2016-03-10 16:32 GMT+01:00 Gianluigi <bagonergi at ...626...>:
> I do not understand why does this happen?
>
> Given this simple code:
>
> Public Sub Form_Open()
>
>   ' First copy this commentate words by selecting it and giving CTRL+C
>
>   TextArea1.Text = "Sed ut perspiciatis unde omnis iste natus
> sit\nvoluptatem accusantium doloremque laudantium,\ntotam rem aperiam eaque
> ipsa, quae ab illo inventore"
>   ' Triky Fabien
>   Clipboard.Current = ClipBoard.Selection
> ' Triky Jorge
>   TextArea1.SetFocus()
>   TextArea1.Select(0, Len(TextArea1.Text))
>
> End
>
> 1) Copy the commentate words
> 2) Start the application.
> 3) CTRL+C
> 4) CANC
> 5) CTRL+V
> It is pasted the Latin phrase
> 6) CANC (clear the textarea)
> 7) CLICK the middle mouse button
> It is pasted the Latin phrase
> 8) Close
>
> Now we repeat the first four steps:
>
> 1) Copy the commentate words
> 2) Start the application.
> 3) CTRL+C
> 4) CANC
> 5) CLICK the middle mouse button
> It is pasted the commentate words(!?)
>
> Why?
>
> Regards
> Gianluigi
> ------------------------------------------------------------------------------
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list