Definition at line 67 of file ColorsNamed.h. References OglGui::B2B, OglGui::OglWindow::ConnectTo(), OglGui::ScrollWnd::ContentPane(), mListener, OglGui::Window::ScaleChildren(), OglGui::Window::SetAllowChildScaling(), OglGui::OglWindow::SetBorderBackground(), OglGui::OglWindow::SetBorderFillShaded(), OglGui::OglWindow::SetBorderType(), OglGui::OglWindow::SetDimensions(), OglGui::Window::SetWindowListener(), and OglGui::T2T. 00068 { 00069 Window* parent = ContentPane(); 00070 char* str; 00071 00072 int i = 0; 00073 while(str = GetOglColorName(i)) 00074 i++; 00075 00076 int cellW = (shaded ? 164 : 134); 00077 int cpW = 8 + ((i/8)+1)* cellW; 00078 int cpH = 8 + 8*28; 00079 parent->SetDimensions(cpW,cpH); 00080 00081 i = 0; 00082 StaticText* txt; 00083 while(str = GetOglColorName(i)) 00084 { 00085 txt = new StaticText(parent,4+cellW*(i/8),cpH-32-(i%8)*28, 00086 128,26,str); 00087 int r, g, b; 00088 OglColorStr2RGB(str, &r, &g, &b); 00089 ULONG bg = ARGB2COLOR(255,r,g,b); 00090 txt->SetBorderType(BEV_ETCHED); 00091 txt->SetBorderFillShaded(shaded ? 2 : 0); 00092 txt->SetBorderBackground(bg); 00093 txt->SetWindowListener(this); 00094 00095 if (shaded) 00096 { 00097 txt = new StaticText(parent,4+cellW*(i/8)+130,cpH-32-(i%8)*28, 00098 26,26, ""); 00099 txt->SetBorderType(BEV_ETCHED); 00100 txt->SetBorderFillShaded(0); 00101 txt->SetBorderBackground(bg); 00102 txt->SetWindowListener(this, (void*) txt); 00103 } 00104 i++; 00105 } 00106 parent->SetAllowChildScaling(true); 00107 parent->ScaleChildren(0,0); 00108 parent->ConnectTo(this,B2B|T2T); 00109 parent->SetAllowChildScaling(false); 00110 mListener = 0; 00111 //new Animator(parent,0,0,40,40); 00112 }
Here is the call graph for this function:
|