[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

2907.0. "Help on DialogBox needed" by STKHLM::BERGGREN (Nils Berggren SWAS/Telecom,Sweden) Mon Jun 11 1990 08:27

    [this is also sent to the Decwindows_programming conference]
Hi,

Are there any DialogBox-experts out there?   

I'm trying to help a customer with some problems with the DB-widget.  They
want to have a special cursor inside a window which they do with
XDefineCursor and it works fine.  Now when the press any mouse button and
moves cursor out of the window the cursor doesn't change until they releases
the mouse button.  It seams to me that the DB grabs the cursor when MBn is
pressed and ungrabs when MB-release.  Is that correct? Any way to have the
DB not to grab if so? I did a workaround with an eventhandler for
ButtonPress which did a XUngrabPointer on the DB and that worked.  Is there
another way to solve this?

Now to the other problem:
In the small testprogram I did (A MainWindow controlling a DialogBox
controlling a PushButton for exiting the program) I get LeaveWindow- and
EnterWindow-events before the ButtonPress-event when pressing a mouse-button
(the cursor is inside th window).  Should it really be like that? If I move
the window on the screen the Enter- and Leave-events are not sent any more
when pressing a MB but if I move the window VERY little (just a few pixels)
I keep getting the Enter- and Leave-events??? I thought that it had
something to do with wich window having the focus so I tried to
XSetInputFocus to the MainWindow or the DialogBox but that didn't change
anything.

Can anyone tell me why it is like that and what to do.

         Thanks,
      Nils Berggren
T.RTitleUserPersonal
Name
DateLines