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 » Other problem with Clipboard in GridCtrl
Other problem with Clipboard in GridCtrl [message #34543] Mon, 28 November 2011 12:29 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Hello Daniel

When using CopyColumnNames(true) I do not get the column names copied.

I think the problem is in GridCtrl::SetClipboard(). The problem is solved just deleting a line (see code).
IMHO the header row cannot be selected, so I do not understand the reason of IsSelected() there:

for(int j = fixed_cols; j < total_cols; j++)
//	if(all || IsSelected(i, j, false))
		tc += hitems[j].GetName() + '\t';


Best regards
Iñaki
Re: Other problem with Clipboard in GridCtrl [message #34652 is a reply to message #34543] Sat, 03 December 2011 23:45 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

The idea behind was to copy only those columns for which selected cells exist. Unfortunately IsSelected here checked only first row instead of scanning all rows for particular column. Anyway it's fixed now Smile Sorry for taking it so long.
Re: Other problem with Clipboard in GridCtrl [message #34654 is a reply to message #34652] Sun, 04 December 2011 00:04 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Thank you Daniel

Now both problems (color cells copy and header copy) are fixed Smile.


Best regards
Iñaki
Previous Topic: Is this a bug?
Next Topic: ArrayCtrl Write To Freed Memory Detected
Goto Forum:
  


Current Time: Fri Mar 29 11:14:56 CET 2024

Total time taken to generate the page: 0.02060 seconds