Re: some bugs and questions

Orlando Andico (
Wed, 12 Mar 1997 13:04:42 +0800 (GMT)

To subscribers of the xforms list from Orlando Andico <> :

On Sun, 9 Mar 1997, Dr. T.C. Zhao wrote:

> To subscribers of the xforms list from "Dr. T.C. Zhao" <> :
> From: Orlando Andico <>
> >buttons in my form. Why is it that the pixmap buttons automagically get
> >depressed when the mouse pointer passes over them? I had set color1 ==
> >color2 so the strange outline doesn't come out (I don't like it).
> Can't seem to reproduce it, maybe it has someting to do with
> setting color1==color2?, i.e., it looks like depressed but
> actually is not.
> > Second: is there a command to get the size of the screen?
> just use fl_scrw, fl_scrh. They are declared in forms.h

1) Yes, color1 == color2, can i get rid of the pixmapbutton-highlighting

2) oh.. :( i used

Display *disp=fl_get_display();

then use DisplayWidth(disp) or DisplayHeight(disp) :/

Another thing: how can I force-update a canvas? I added a callback for
Expose events, which redraws the whole thing (it's a clock, i didn't like
the default XForms clock). now i redraw it by

fl_hide_object (canvas);
fl_show_object (canvas);

This works, but it flashes terribly. Now I would like to have another
callback (maybe MouseEntry?) do a different sort of update (erase the
hands, redraw them, instead of everything) but how do I trigger this

| Orlando Andico email: |
| IRC Lab/EE Dept/UP Diliman |
| "through adventure we are not adventuresome" -- 10000 Maniacs |

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: