[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

1599.0. "Why get events on window borders?" by EPIK::J_JOSEPH (Living in the Pasture) Wed Oct 18 1989 18:33

Why do windows accept events on borders?  I create a window with a border, and
I define a cursor for it, and accept events (like MB1 down) which occur in it.  
In my case, I want to draw stuff into the window, but the border is not part
of it that's just there to make it look nice (zero width borders are not
acceptable since I need a border there).  How can I get around this problem - I
can ignore events which occur there (which is what I do now), but the cursor
will have changed, so It looks like you should get something, and if you get
nothing (event ignored) it will be confusing to the user.  Ya know what I mean?
Anyone have any solutions?

Thanks.

-Joanthan

T.RTitleUserPersonal
Name
DateLines
1599.1FLUME::dikeThu Oct 19 1989 08:324
Put another window underneath which has the needed border and ignore events from
that window.
				Jeff

1599.2I couldn't get that to workEPIK::J_JOSEPHLiving in the PastureThu Oct 19 1989 15:2918
> Put another window underneath which has the needed border and ignore events from
> that window.

Well, let me be explicit.  I'm dealing with a Scroll window with both H and V
scroll bars and a work window.  I don't want to get events on the borders of
the work window, but I do want to be able to see the borders.

I've tired to do what you say, but I can't seem to get the second window
"underneath".  It always seems to cover the scroll bars.  When I resie the 
scroll window larger than the size of the work window, I want to be able to 
see the borders, but not get events on them.  It seems that no matter how I
arrange the widgets in the UIL file, the extra window obscures the scroll 
bars.  Are there any other suggestions - or a suggestion on how to make the
"extra window" idea work?

-Jonathan


1599.3FLUME::dikeThu Oct 19 1989 16:508
Have you tried XLowerWindow(XtWindow(bottom_widget))?

It sounded like you were doing raw Xlib.  Widgets may have their own ideas about
what they like their borders to be.  By "work widget", do you mean window 
widget?  The window widget, of all the widgets, should allow you to set it up
any way you want.
				Jeff