Reimplemented from OglGui::ButtonListener. Definition at line 51 of file ColorTargetModalDialog.h. References OglGui::ColorDialog::ColorWnd(), OglGui::OglWindow::GetBorderBackground(), mColorDialog, mModalWnd, mTargetWnd, mWhat, OglGui::ColorDialog::OkBtn(), OglGui::OglWindow::SetBackground(), OglGui::OglWindow::SetBorderBackground(), OglGui::Window::SetForeground(), and OglGui::OglWindow::UpdateScene(). 00052 { 00053 if (src == mColorDialog->OkBtn()) 00054 { 00055 ULONG col = mColorDialog->ColorWnd()->GetBorderBackground(); 00056 if (mWhat==0) 00057 mTargetWnd->SetBackground(col); 00058 if (mWhat==1) 00059 mTargetWnd->SetBorderBackground(col); 00060 if (mWhat==2) 00061 mTargetWnd->SetForeground(col); 00062 mTargetWnd->UpdateScene(); 00063 } 00064 delete mModalWnd; 00065 delete this; 00066 }
Here is the call graph for this function:
|