[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

2946.0. "Accelerators, popup_dialog_box, title bar and mouse cursor position" by KAORSC::K_BURECHAILO () Mon Jun 18 1990 12:59

    I have an application with the following hierarchy:

    				toplevel
    				   |
                     ----------------------------------
    		     |                                |
    		 main_window		       popup_dialog_box
    		     |                                |
      ________________                   ------------------------
      |              |                   |       |      |       |
    menu_bar     dialog_box          push_button |      |       |
       .             .                           |      |       |
       .	     .			    push_button |       |
       .             .                                  |       |
    						   push_button  |
                                                                |
                                                           push_button

    The problem concerns the popup_dialog_box. The push buttons that
    are children of the popup_dialog_box all have accelerators defined.
    The take_focus argument of the popup_dialog_box is true.
    Accelerators are installed as follows:

    	XtInstallAllAccelerators(popup_dialog_box,popup_dialog_box);

    When the popup_dialog_box is managed, it has focus and the
    accelerators work fine regardless of where the mouse pointer is
    located on the screen. However, if the user clicks MB1 on the
    title bar of the popup_dialog_box, the accelerators only work if
    the mouse pointer is somewhere inside the popup_dialog_box. If the
    user then clicks MB1 anywhere in the popup_dialog_box (except on
    one of the push_buttons), the accelerators again work regardless
    of where the mouse pointer is located. What is the difference
    between clicking on the title bar and clicking inside the
    popup_dialog_box? Is there some way to make clicking on the title
    bar behave the same way as clicking inside the popup_dialog_box?

     
T.RTitleUserPersonal
Name
DateLines