Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Range paste for GridCtrl
Re: Range paste for GridCtrl [message #8550 is a reply to message #8539] |
Fri, 16 March 2007 21:40 |
|
nixnixnix wrote on Fri, 16 March 2007 11:26 | I can edit cells having added edit ctrls to each column. However, I can't select rectangular regions and more importantly, the paste only appears to work inside the edit control. When I try to paste a range of cells that I've copied from Excel, nothing happens.
|
Hold ctrl to make recatngural selection.
Pasting text and excel is unavailable now (lack of time..) but it will be implemented after releasing 2007.1. If you see at Paste routine you'll find //todo (add a proper code if you want there )
GridClipboard gc = GetClipboard();
if(gc.data.IsEmpty())
{
if(IsClipboardAvailableText())
{
Vector<String> lines = Upp::Split(ReadClipboardText(), '\n');
for(int i = 0; i < lines.GetCount(); i++)
{
Vector<String> cells = Upp::Split(lines[i], ' ');
//todo..
}
}
return;
}
Quote: |
If its not implemented I don't understand why the paste menu is there. Also, when I select two cells in a column the cells in the adjacent column get selected (I've turned off row select).
|
Something to fix. I will take a look ASAP.
Quote: |
GridCtrl looks great and I realise its probably still under development.
|
Yes, but in current form it should be quite stable and usable. I will write a better documentation soon to show you the all hidden power
PS: I have merging cells in 60% implemented - this will be next major future.
PS2: Thanks for reporting bugs!
|
|
|
|
|
Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Fri, 16 March 2007 21:40
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Sun, 18 March 2007 16:55
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Sun, 18 March 2007 22:01
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Tue, 20 March 2007 20:01
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Mon, 05 November 2007 13:17
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: fuqr on Thu, 03 January 2008 03:23
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Thu, 03 January 2008 08:35
|
|
|
Re: Range paste for GridCtrl
|
|
|
Re: Range paste for GridCtrl
By: fuqr on Thu, 03 January 2008 10:10
|
|
|
Re: Range paste for GridCtrl
By: unodgs on Fri, 04 January 2008 00:10
|
|
|
Re: Range paste for GridCtrl
By: fuqr on Fri, 04 January 2008 02:55
|
Goto Forum:
Current Time: Mon May 13 01:36:50 CEST 2024
Total time taken to generate the page: 0.02631 seconds
|