Albert - 

You'll need to read up or post on the FLTK list, as you're using the FLTK
toolkit to set up text and colors.  Check to see that the colors are
in fact changing when running on FLTK/X11, instead of through the
NXLIB library.  I have tested nano-X with FLTK 1.10 and all the FLTK
demos run fine.

Regards,

Greg
  ----- Original Message ----- 
  From: albert3_c...@askey.com.tw 
  To: nanogui-...@linuxhacker.org ; nanogui@linuxhacker.org ; g...@censoft.com 
  Sent: Wednesday, March 09, 2011 1:13 AM
  Subject: Nano-X issue


  Dear Sir,

   

  The following code is to display text "Hello World!" on TI 365 platform,

  The development environment uses Nano-X(v0.92) and FLTK(v1.07).

   

  Questions:

   1. Cannot change the text size, even modify box->labelsize();

  2. Cannot change the background and text color after modifying the relative 
attribute. The background is always blue and text is black.    

   

   Would you kindly tell how to set/check font, color, size in Nano-X library ?

   Please give me a hand.

   Thanks a lot.

   

   int main(int argc, char **argv)

  {

    Fl_Window *window = new Fl_Window(340,180);

  Fl_Box *box = new Fl_Box(20,40,300,100,"Hello, World!");

    box->box(FL_UP_BOX);

    box->labelfont(FL_BOLD+FL_ITALIC);

    box->labelsize(10);

    box->labeltype(FL_SHADOW_LABEL);

    window->end();

    window->show(argc, argv);

    return Fl::run();  

  }

   

  Albert Chen

  E-mail: albert3_c...@askey.com.tw 

  TEL: 886-2-22287588 # 18019

  FAX: 886-2-32349340

Reply via email to