U++ framework
Do not panic. Ask here before giving up.

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: 69
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: Tue Jun 23 16:13:39 GMT+2 2026

Total time taken to generate the page: 0.00643 seconds