Definition at line 225 of file Menu.h. References OglGui::OglWindow::H(), IsChecked(), IsEnabled(), IsSeparator(), IsSubMenu(), mActiveBg, mCurItem, mItemHeight, mItemNames, OglGui::OglWindow::mOglWnd, and OglGui::OglWindow::W(). Referenced by DisplayFunc(). 00226 { 00227 int y = H() - (idx+1)*mItemHeight; 00228 if (idx==mCurItem && IsEnabled(idx)) 00229 { 00230 SetSolidFillColor(mActiveBg); 00231 FillRectangle(0,y,W(),mItemHeight); 00232 SetSolidLineColor(oglBLACK); 00233 DrawRectangle(0,y,W(),mItemHeight); 00234 } 00235 ULONG color = IsEnabled(idx) ? oglBLACK : oglLIGHTGREY; 00236 oglSys.PosColPrintf(mOglWnd,12,y+4,color,mItemNames[idx].c_str()); 00237 if (IsSubMenu(idx)) 00238 oglSys.PosColPrintf(mOglWnd,W()-12,y+4,color,">"); 00239 if (IsChecked(idx)) 00240 { 00241 SetSolidLineColor(oglBLACK); 00242 DrawLine(3,y+8,6,y+5); 00243 DrawLine(5,y+5,11,y+11); 00244 } 00245 if (IsSeparator(idx)) 00246 { 00247 SetSolidLineColor(oglLIGHTGREY); 00248 DrawLine(0,y-2,W(),y-2); 00249 } 00250 }
Here is the call graph for this function:
|