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 » ScatterDraw & ScatterCtrl » Use function pointer
Re: Use function pointer [message #48269 is a reply to message #48229] Tue, 13 June 2017 12:50 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello Deep

Probably I would prefer to save a reference to the tab and using it directly.

However you can use this everywhere:
for (int i = 0; i < Examples().GetCount(); ++i) {
	if (Examples()[i].name == "User equation") {
		TabUserEquation &tab = dynamic_cast<TabUserEquation&>(*Examples()[i].ctrl());
		EditString &equation = tab.equation;
		equation.SetText("HELLO WORLD!");
	}
}


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: bug in scatterdraw.h and its fix
Next Topic: Dynamic example - 100% CPU core load
Goto Forum:
  


Current Time: Sat Jun 28 02:17:42 CEST 2025

Total time taken to generate the page: 0.05500 seconds