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 » Doing my own thing with the ADD button on GridCtrl?
Re: Doing my own thing with the ADD button on GridCtrl? [message #23399 is a reply to message #23398] Fri, 16 October 2009 20:46 Go to previous messageGo to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Oh... I was able to easily add to GridCtrl:

// .h
Callback WhenStartInsertRow;

// .cpp, void GridCtrl::DoAppend0(bool edit)
if (!WhenStartInsertRow.Empty())
{
	WhenStartInsertRow.Execute();
	return;
}


Which I can then use:

myGrid.WhenStartInsertRow = THISBACK(LoadEditDialog);


but... I was not sure if there was an existing way of doing this or not or if this addition was conforming to other uses of WhenStart* naming. I suppose that there should probably be two of these methods, one for Append and one for Insert. The Insert one passing a row index of where to insert or something along those lines.

What do you think?

Jeremy
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DoSum(), DoAvg(), etc... and search operations
Next Topic: Adding new row to GridCtrl... How to force a resort?
Goto Forum:
  


Current Time: Thu Jun 06 18:10:53 CEST 2024

Total time taken to generate the page: 0.01784 seconds