[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

800.0. "Unmanagable popup dialog box" by 57727::FARRELL (Money, there is no substitute!) Thu May 18 1989 14:56

I am using a C program with UIL/UID widget stuff.

I have a popup dialog box with a bunch of other widgets on it (as children).
One of these widgets is a push button.  Whenever I push this button, the
entire dialog box disappears.  I am NOT (Xt)Unmanage(ing) it, it just goes
by itself.

How can I prevent this?

advaTHANKSnce,

		$$$$ ted $$$$

T.RTitleUserPersonal
Name
DateLines
800.1Perhaps auto_unmanage is trueTLE::D_SMITHThu May 18 1989 15:4012
    I believe there is an "auto_unmanage" resource that may default to
    being true.  The resource is listed in the low-level widget creation
    call, but I couldn't find it in the UIL reference manual.
    
    You may need to add something like
    
      value auto_unmanage : argument ('autoUnmanage', boolean);
    
    in your UIL file and then use it as a resource when you define this
    particular dialog box.
    

800.2PSW::WINALSKIPaul S. WinalskiFri May 19 1989 03:105
auto_unmanage is true by default for popup dialog boxes.  See page B-30 in the
UIL manual.

--PSW

800.3more popup dialog box stuffLENSMN::boniniI was grepped by a zombie with a pipe!!!Wed Jun 28 1989 18:2021

	In keeping with the spirit of reducing the number of topics in this
conference, I'll put this here since it's about popup dialog boxes.

	Someone doing a PMAX port noted that when he defined a popup dialog box
as the child of a widget he had some problems.  Essentially, what he wants is
to define ONE popup dialog box instance and then have that one instance popup
when MB2 is pressed in any of 4 main window widgets his application uses.

	Can he do this with one widget instance or does he need to define one
instance for each window?  The dialog box and its children are identical in all
cases.

	Also noted that when he bound the popup to MB2 that he lost MB2
functionality on the scroll bar associated with the window.  When he pressed
MB2 while over the scroll bar, he got the popup instead of the default MB2
behaviour for scroll bars.

Thanks

800.4System vector error during manage-childAIAG::SCHWARTZStaying one step ahead.Wed Nov 15 1989 01:0993
Same title, different problem.  

When MANAGEing a UIL popup_attached_db, I get the following:

  Error in DWT:MANAGE-CHILD: Attempt to modify system vector, T or NIL.

What does this mean?

Background:  This occurred in VAX LISP 3.0.
The FETCH WIDGET performed successfully.  I was able to manipulate some of the
children's resources, though I never managed nor mapped the popup.

The full UIL description follows:

object attributes_popup : popup_attached_db {
  arguments { x = 400;
              y = 400;
              width = 300;
              height = 300; 
              title = "Network Component Attributes"; };
  controls { list_box attr_names;
             label attr_name_chosen_label;
             simple_text attr_name_chosen;
             label attr_class_label;
             simple_text attr_class;
             scale attr_memory_value; 
             push_button attr_change; 
             push_button attr_cancel; };}; 
object attr_names : list_box { 
       	arguments { adb_top_attachment = DwtAttachAdb;
                    adb_left_attachment = DwtAttachAdb;
                    visible_items_count = 3;
		    items = string_table(); };
	callbacks { single_confirm = procedure attr_choose_component (); };};
object attr_name_chosen_label : label {
	arguments { adb_top_attachment = DwtAttachAdb;
                    adb_left_attachment = DwtAttachWidget;
                    adb_left_widget = list_box attr_names; 
                    label_label = "Component: "; };};
object attr_name_chosen : simple_text {
	arguments { adb_top_attachment = DwtAttachAdb;
                    adb_left_attachment = DwtAttachWidget;
                    adb_left_widget = label attr_name_chosen_label;
                    half_border = false;
                    insertion_point_visible = false;
                    cols = 31;
                    simple_text_value = "";
                    editable = false; };};
object attr_class_label : label {
      arguments { adb_top_attachment = DwtAttachWidget;
                  adb_top_widget = label attr_name_chosen_label;
                  adb_left_attachment = DwtAttachWidget;
                  adb_left_widget = list_box attr_names;
                  label_label = "Class: "; };};
object attr_class : simple_text {
      	arguments { adb_top_attachment = DwtAttachWidget;
                    adb_top_widget = label attr_name_chosen_label;
                    adb_left_attachment = DwtAttachWidget;
                    adb_left_widget = label attr_class_label;
                    half_border = false;
                    insertion_point_visible = false;
                    cols = 31;
                    simple_text_value = "";
                    editable = false; };};
object attr_memory_value : scale {
	arguments { adb_top_attachment = DwtAttachWidget;
                    adb_top_widget = list_box attr_names;
                    adb_left_attachment = DwtAttachAdb;
                    sensitive = false;
                    min_value = 0;
                    max_value = 16;
		    scale_value = 4;
                    title = "Memory size (Mb)";
                    show_value = false; };
	callbacks { value_changed = procedure attr_memory_changed (); };
	controls { label { arguments { label_label = "0"; };};
                   label { arguments { label_label = "4"; };};
                   label { arguments { label_label = "8"; };};
                   label { arguments { label_label = "12"; };};
                   label { arguments { label_label = "16"; };};};};
object attr_change : push_button { 
	arguments { adb_top_attachment = DwtAttachWidget;
                    adb_top_widget = scale attr_memory_value;
                    adb_left_attachment = DwtAttachAdb;
                    label_label = "Change"; 
                    sensitive = false; };
	callbacks { activate = procedure change_attributes (); };};
object attr_cancel : push_button { 
	arguments { adb_top_attachment = DwtAttachWidget;
                    adb_top_widget = scale attr_memory_value;
                    adb_right_attachment = DwtAttachAdb;
                    label_label = "Cancel"; };
	callbacks { activate = procedure unmap_attr_popup (); };};