T.R | Title | User | Personal Name | Date | Lines |
---|
2339.1 | | CSCOA3::HOOD_DO | | Thu Feb 22 1990 16:33 | 12 |
| Someone correct me if I am wrong....
The setvalues method should return a value , true or false, which will
trigger an Xlib routine that generates an Expose event. Expose events
trigger the redisplay method. If (in your setvalues method) you set a
value that does not require the widget to be redrawn, you should return
false. If you set a value that requires the widget to be redrawn
(except for width/height changes), your setvalues method should return
a true.
Doug
|
2339.2 | But there's always a "gotcha" | DECWIN::KLEIN | | Thu Feb 22 1990 17:41 | 22 |
| Reply .1 is correct I believe. I don't know what prompted the original
question, but perhaps this tidbit is also relevant:
There is a bug in DECwindows (V2 at least, probably also V1)
that affects widgets that are children of a constraint widget that is
a subclass of Dialog. This includes ADBs and dialog boxes as the most common.
The bug is that if the positioning units of the dialog box widget is FontUnits
(rather than PixelUnits), then the constraint SetValues routine for the dialog
box widget class is blindly setting the redisplay flag whether or not child
actually needs to be redisplayed.
The end result of this is that regardless of the value returned by the
child widget's SetValue routine, if it is a child of a dialog box or
ADB that has FontUnit positioning (the default), then ANY SetValues call
to that child widget causes it to be redisplayed.
I have reported this and understand that it will be fixed in DECwindows V2.1
but I don't know that for a fact. In the meantime, I use PixelUnit positioning
(and sigh a lot).
-steve-
|
2339.3 | User Defined Widget Question | FREZEN::PROJECTS | | Thu Feb 22 1990 19:50 | 12 |
|
Thanx guys for the consideration....
If my SetValues procedure is hardcoded to return TRUE all the
time will an expose event be generated to invoke the sub classes
redisplay?
I'm trying to figure if the data I send to redisplay is corrupted
or if I am losing expose events somewhere.
Thanx
|
2339.4 | You seem to have the facts right | DECWIN::KLEIN | | Fri Feb 23 1990 12:03 | 9 |
| > If my SetValues procedure is hardcoded to return TRUE all the
> time will an expose event be generated to invoke the sub classes
> redisplay?
This is true.
Try setting some breakpoints?
-steve-
|