Quote:
Can u teach me how to update this text from other GUI?
I want to make GUI for rank ingame. If it needs to create each variable per text then to too many variables...
For example my GUI like this:
I don't know how to update this text :(Code:for (int i = 0; i < 20; i++) { RECT r_slot = {18,55 + (23*i),47,24}; rank_slot = (CIFStatic *) CGWnd::CreateInstance(this,GFX_RUNTIME_CLASS(CIFStatic),r_slot,21+i,1); rank_slot->SetText(L"-"); }
Hello,Quote:
I think you don't want to make 100++ "m_mybutton" like that to create a GUI's Rank!
If your GUI's Rank has 20 rows and 6 columns. You must create 120 button. Omg @@!
Code:
for (int i = 0; i < 20; i++) { RECT r_slot = {18,55 + (23*i),47,24}; rank_slot = (CIFStatic *) CGWnd::CreateInstance(this,GFX_RUNTIME_CLASS(CIFStatic),r_slot,21+i,1); rank_slot->SetText(L"-"); }
change from rank_slot = (CIFStatic *) to rank_sloti = (CIFStatic *)
and
rank_slot->SetText(L"-"); to rank_sloti->SetText(L"-");
good luck :rolleyes: