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 » Newbie question: ArrayCtrl::IsModified(int ii) not work at expected.
Re: Newbie question: ArrayCtrl::IsModified(int ii) not work at expected. [message #31557 is a reply to message #31555] Mon, 14 March 2011 06:45 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 527
Registered: March 2007
Contributor
Not actually related, I just saw this code in Callback.cpp

bool Gate::Execute() const
{
	return (void *)action == (void *)1 ? true : action ? action->Execute() : false;
}


Would something like this be overly smart ? Smile

bool Gate::Execute() const
{
    return (void *)action<(void*)2? (void*)action==(void*)1 :action->Execute();
}
    // or even
    //return (void *)action<(void*)2 ? (bool)action : action->Execute();
}



[Updated on: Mon, 14 March 2011 06:46]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Wrapping text in ArrayCtrl cells
Next Topic: GridCtrl questions
Goto Forum:
  


Current Time: Fri May 17 15:23:43 CEST 2024

Total time taken to generate the page: 0.04425 seconds