[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

3012.0. "Problems with ENTRY-callback in OptionMenu-widget" by STKHLM::BERGGREN (Nils Berggren SWAS/Telecom,Sweden) Thu Jun 28 1990 13:00

Hi,

I have two push-buttons in a pulldown-menu activated by an option_menu-widget.
When activating one of the pushbuttons I should activate the entry_callback in
the option_menu, if present, but I only activate the callbacks for the
push-buttons.  The description for the option-menu in VMS DECwindows toolkit 
ref man, says that "If entry_callback is nut NULL, then all the togglebutton
callbacks execute the entry_callback routine rather than the procedure specified
in the toggle_button."
To me it doesn't seem to be that way???

BUT, depending on how fast I do MB1-down and MB1-up on the option-menu 
active area I get :
    
   Very fast:       the entry-callback activated
                        or
   Fast:            entry-callback + arm-callback + disarm-callback
                        or
   Normal:          arm-callback + activate-callback + disarm-callback
      
Any help is appreciated.
   
              /Nils
T.RTitleUserPersonal
Name
DateLines
3012.1ENTRY-callback on PulldownMenu is the solutionSTKHLM::BERGGRENNils Berggren SWAS/Telecom,SwedenFri Jun 29 1990 04:2611
Got the answer,

The Entry-callback should be connected to the pulldownmenu-widget instead of the
optionmenu-widget.

As I see it the toolkit ref. manual is wrong concerning the optionmenu and the 
description of the pulldownmenu-widget does not say anything about 
ENTRY-callback.  However, in the UIL manual the entry-reason is present.


                  /Nils