testchild_.cpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:2k
- /*
- * ===========================================================================
- * PRODUCTION $Log: testchild_.cpp,v $
- * PRODUCTION Revision 1000.1 2004/06/01 21:14:27 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.7
- * PRODUCTION
- * ===========================================================================
- */
- // generated by Fast Light User Interface Designer (fluid) version 1.0105
- /* $Id: testchild_.cpp,v 1000.1 2004/06/01 21:14:27 gouriano Exp $ */
- #include <ncbi_pch.hpp>
- Fl_Menu_Item CTestChild::menu_[] = {
- {"File", 0, 0, 0, 64, 0, 0, 14, 56},
- {"Exit", 0, 0, 0, 0, 0, 0, 14, 56},
- {0},
- {"Help", 0, 0, 0, 64, 0, 0, 14, 56},
- {"About...", 0, 0, 0, 0, 0, 0, 14, 56},
- {0},
- {0}
- };
- CTestChild::CTestChild() {
- CChild* w;
- { CChild* o = m_Child = new CChild(0, 0, 400, 330);
- w = o;
- o->box(FL_FLAT_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NO_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->user_data((void*)(this));
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- { Fl_Menu_Bar* o = new Fl_Menu_Bar(0, 0, 400, 25);
- o->menu(menu_);
- }
- { Fl_Group* o = new Fl_Group(0, 25, 400, 305);
- { Fl_Box* o = new Fl_Box(0, 25, 400, 65, "Test Widget inside of a child! (OpenGL panel below, disregard bad rendering)");
- o->align(FL_ALIGN_WRAP);
- }
- { Fl_Gl_Window* o = new Fl_Gl_Window(10, 90, 380, 230);
- o->box(FL_NO_BOX);
- o->color(FL_BACKGROUND_COLOR);
- o->selection_color(FL_BACKGROUND_COLOR);
- o->labeltype(FL_NORMAL_LABEL);
- o->labelfont(0);
- o->labelsize(14);
- o->labelcolor(FL_BLACK);
- o->align(FL_ALIGN_TOP);
- o->when(FL_WHEN_RELEASE);
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- Fl_Group::current()->resizable(o);
- }
- o->end();
- }
- static int counter = 0;
- m_TitleStr = "Child #" + NStr::IntToString(++counter);
- m_Child->label(m_TitleStr.c_str());
- }