Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

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 Wink )
	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 Smile

PS: I have merging cells in 60% implemented - this will be next major future.
PS2: Thanks for reporting bugs!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to change GridCtrl background color
Next Topic: How to do column resizing after ShowColumn() or HideColumn()?
Goto Forum:
  


Current Time: Mon May 13 01:36:50 CEST 2024

Total time taken to generate the page: 0.02631 seconds