nanogui: Re: Nano-X issue


Previous by date: 10 Mar 2011 06:05:10 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next by date: 10 Mar 2011 06:05:10 -0000 Re: Nano-X issue, Greg Haerr
Previous in thread:
Next in thread: 10 Mar 2011 06:05:10 -0000 Re: Nano-X issue, Greg Haerr

Subject: Re: Nano-X issue
From: "Greg Haerr" ####@####.####
Date: 10 Mar 2011 06:05:10 -0000
Message-Id: <01b801cbdee9$0acec3a0$6964a8c0@winXP>

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: ####@####.#### 
  To: ####@####.#### ; ####@####.#### ; ####@####.#### 
  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: ####@####.#### 

  TEL: 886-2-22287588 # 18019

  FAX: 886-2-32349340

Previous by date: 10 Mar 2011 06:05:10 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next by date: 10 Mar 2011 06:05:10 -0000 Re: Nano-X issue, Greg Haerr
Previous in thread:
Next in thread: 10 Mar 2011 06:05:10 -0000 Re: Nano-X issue, Greg Haerr


Powered by ezmlm-browse 0.20.