DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New] Link: http://www.fltk.org/str.php?L2866 Version: 1.3-feature Thanks for all reply. I explain the details, that is I want to use some embedded GUI for development, this GUI need have such features: 1. small. I only need label and text, other controls need be cutted off to meet our hardware(It's only 8M). The FLTK library was built to 1.3M on my ubuntu 12.04 wmware, can it builds to be smaller than 1M? If it can be, can you tell me the step? 2. fast. because the hardware is too slow, GUI should not take too much time. The time I tested is as this: I built the text/button.c, and test the button on ubuntu 12.04 with 1G memory and CPU(intel cpu g630, 2.70GHZ). I add two test: Test New control(That is new window and and 3 buttons): cost 1ms; Test show window(window->show() method): cost 200+ms): --------------------------------------------------------- class CAtuoTestTime { public: CAtuoTestTime() {} ~CAtuoTestTime() {} void Begin(); void End(); void SetText(const char* szText); private: struct timespec m_tm_begin; const char* m_szText; }; void CAtuoTestTime::Begin() { clock_gettime(CLOCK_REALTIME, &m_tm_begin); } void CAtuoTestTime::End() { struct timespec tm_now; clock_gettime(CLOCK_REALTIME, &tm_now); int msec_cost = (tm_now.tv_sec * 1000 + tm_now.tv_nsec / 1000 / 1000) - (m_tm_begin.tv_sec * 1000 + m_tm_begin.tv_nsec / 1000 / 1000); Fl::warning("%s cost %d(ms)", m_szText, msec_cost); } void CAtuoTestTime::SetText(const char* szText) { m_szText = szText; } int main(int argc, char ** argv) { CAtuoTestTime att; att.SetText("New control"); att.Begin(); Fl_Window *window = new Fl_Window(320,65); Fl_Button *b1 = new Fl_Button(20, 20, 80, 25, "&Beep"); b1->callback(beepcb,0); /*Fl_Button *b2 =*/ new Fl_Button(120,20, 80, 25, "&no op"); Fl_Button *b3 = new Fl_Button(220,20, 80, 25, "E&xit"); att.End(); b3->callback(exitcb,0); window->end(); att.SetText("Show window"); att.Begin(); window->show(argc,argv); att.End(); #if 0 Fl::add_fd(0, stdin_cb); #endif return Fl::run(); } --------------------------------------------------------- 3. good structure, the FLTK meet this. please instruct me to build the FLTK to meet my demand, thanks. Link: http://www.fltk.org/str.php?L2866 Version: 1.3-feature _______________________________________________ fltk-dev mailing list fltk-dev@easysw.com http://lists.easysw.com/mailman/listinfo/fltk-dev