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 » Select Grid Row BY ID
Re: Select Grid Row BY ID [message #56305 is a reply to message #56298] Fri, 19 February 2021 07:31 Go to previous messageGo to previous message
JeyCi is currently offline  JeyCi
Messages: 50
Registered: July 2020
Member
BTW, I just created function
void MTT::ChgColor(int i, RGBA bg)
{
	//outab.cont.GetRow(i).Bg(Yellow());
	PostCallback([=] {    
	    outab.cont.GetRow(i).Bg(bg);
	    outab.cont.Refresh();
    });
}

for class MTT : public WithStockLayout<TopWindow>
& calling it in thread like ChgColor(i, LtGreen());
(just to get away duplication of repeated functionality)
But the main feature is Refresh() Wink to see grid_color_changes & any changes at all


Best regards.

[Updated on: Fri, 19 February 2021 07:37]

Report message to a moderator

 
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: Minor "mistake" in <CtrlLib/ArrayCtrl.h>
Next Topic: Insert Ctrl editors in a single row of ArrayCtrl
Goto Forum:
  


Current Time: Mon Apr 29 02:53:18 CEST 2024

Total time taken to generate the page: 0.05873 seconds