[comp.windows.x] Unwanted expose events from attacheddialogbox-parent

margot@spex1.uucp (Margot Lagendijk) (10/12/90)

I am sending this for a friend of mine, who doesn't have access to the net.
Please reply with email, so I can forward the responses to my friend.

Margot
margot@spex.nl


UNWANTED EXPOSE EVENTS FROM ATTACHEDDIALOGBOX-PARENT

I would like to ask if anybody has encountered a problem with
the "attached dialog box" widget from the DECWindows toolkit
concerning unwanted expose events.

I have designed a simple widget (directly inherited from core) wich i
hang under an adb-widget. Every time the application makes a change
in the resources of the simple widget, an (undesired) expose event is
generated. The set_values method of the simple widget seems to be 
innocent. Even if I set the set_values method reference to NULL there 
are still expose events generated.

The occurs only when using an adb-widget as a parent, using a main 
window widget or hanging the simple sidget directly under the top level 
shell seems to work fine.

Possible the adb-widget set_values method is resposible, it is called
automatically since the adb-widget inherits from constraint. But
I can't imagine why they would have designed it like that since no
constraint resources are modified and any redrawing is uncalled for.
Since I don't have DECWindows widget source code I can't check
my suspicions.

Does anyone know more ?

Daan Broeder.