nanogui: repeated XSetClipMask question


Previous by date: 3 Jan 2007 15:22:37 +0000 Problem on running mozilla on nano-X, Tharmarajan G
Next by date: 3 Jan 2007 15:22:37 +0000 Building Nano-X, Christian Gabrielli
Previous in thread:
Next in thread: 3 Jan 2007 15:22:37 +0000 Re: repeated XSetClipMask question, Greg Haerr

Subject: repeated XSetClipMask question
From: "Gianluca Moro" ####@####.####
Date: 3 Jan 2007 15:22:37 +0000
Message-Id: <d0b802ba0701030722o6b44b429gdf9de7ed2d50b5a0@mail.gmail.com>

hi all,

I made an application with a label whose contents are updated with the
current time each second:
if I uupdate the time with a

    dateAndTimeLabel->value(s);

the value of the label is updated but it is written on the old value,
so the result it a complete mess.

If I use:
   dateAndTimeLabel->hide();
   dateAndTimeLabel->value(s);
   dateAndTimeLabel->show();

the label is correctly updated, but I see on the console a

XSetClipMask 285

message for each update.

dateAndTimeLabel is defined as follows:

 { Fl_Output* o = dateAndTimeLabel = new Fl_Output(HEADER1_DATE_X,
                                                    HEADER1_DATE_Y,
                                                    HEADER1_DATE_W,
                                                    HEADER1_DATE_H);
  o->box(FL_NO_BOX);  // FL_FLAT_BOX);
  o->labeltype(FL_NO_LABEL);
  //o->labelfont(1);
  //o->labelsize(24);
  o->textfont(HEADER1_FONT_TYPE);
  o->textsize(HEADER1_FONT_SIZE);
  o->value("");
  }

it it correct to implement an updatin clock in this way?
that "isXSetClipMask 285" indicates any memory leak?
Which is the correct way to implement an updating clock?

thanks
giammy

-- 
Gianluca Moro          http://groups.yahoo.com/group/embeddeditalia/
ISCRIVITI alla             Mailing List Italiana su LINUX EMBEDDED
####@####.####   www.giammy.com

Previous by date: 3 Jan 2007 15:22:37 +0000 Problem on running mozilla on nano-X, Tharmarajan G
Next by date: 3 Jan 2007 15:22:37 +0000 Building Nano-X, Christian Gabrielli
Previous in thread:
Next in thread: 3 Jan 2007 15:22:37 +0000 Re: repeated XSetClipMask question, Greg Haerr


Powered by ezmlm-browse 0.20.