[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

493.0. "Problems with menubar in ATTACHED dialog box" by AIAG::PARIKH (Mehul Parikh. A I Applications Group) Tue Mar 28 1989 16:27

 I am having trouble putting a menubar in an attached dialog box. What I get,
 is a menubar just wide enough to contain the pulldown entry. I want a menubar
 wide enough to cover the whole width of the dialog box. 

 It is the same method I am using as the one I used for the menubar in the main
 window. Any suggestions?

 Thanks,
	-- Mehul.

T.RTitleUserPersonal
Name
DateLines
493.1attach menu bar to ADBSMAUG::FLOWERSIBM Interconnect Eng. 226-7716Tue Mar 28 1989 20:1422
I also noticed this behavior of menu_bars inside dialog boxes.  The 
solution is to attach the sides of the menu bar to the ADB.  

Ie,
	object
	    my_menu_bar : menu_bar {
		arguments { 
			    adb_left_attachment  = DwtAttachAdb;
			    adb_left_offset	 = 0;
			    adb_right_attachment = DwtAttachAdb;
			    adb_right_offset	 = 0;
			  };

...also with the following previously defined...

value
    adb_left_attachment     : argument('adbLeftAttachment', integer);
    adb_right_attachment    : argument('adbRightAttachment', integer);
    adb_left_offset         : argument('adbLeftOffset', integer);
    adb_right_offset        : argument('adbRightOffset', integer);


493.2Worked like a charm...AIAG::PARIKHMehul Parikh. A I Applications GroupWed Mar 29 1989 11:4611
 You were right! After attaching the edges it does the right thing. 
 I still find it bizzare that the application developer has to do
 this! A menubar, has to span the whole width of its parent, 
 irrespective of whether that parent is a dialog box or ATTACHED 
 dialog box.

 Thanks for the information anyway!

 -- Mehul.

493.3Will menubar wrap in a POPUP ADB?CSC32::B_KEMPI just answer the phoneThu May 10 1990 15:354
         I am having problems getting a menubar in a popup_attached_dialog
    _box to wrap when the popup adb is downsized.  Any clues?
    
    Bill
493.4MainWindow neededDECWIN::KLEINThu May 10 1990 19:545
The menubar must be parented by a mainWindow widget.  The mainWindow widget
should contain the menubar and the ADB (which will contain everything
except the menubar).

-steve-
493.5MenuBar with PopupDialogBox does not WORKEMC2::POGLIANIDucunt fata volentem, nolentem trahuntTue Nov 27 1990 08:0768
Hi everybody,

	what's wrong with this UIL ? Why am I not able to have the menu_bar
displayed on the full length of the popup_dialog_box ?

module main
version = 'v1.0'
names = case_sensitive

include file 'definizioni.uil';
include file 'decw$include:DECwDwtApplProg.uil';

object
        mainWindow: main_window {
                arguments {
			width = 1000;
                        height = 800;
			border_width = 50;
			background_color = lightblue;
                };
                controls {
			unmanaged popup_dialog_box queryDialogBox;
				.
				.
				.
                };
        };
!

object
   	queryDialogBox : popup_dialog_box {
		arguments {
			title = query_menu_title;
			x = 200;
			y = 150;
			width = 710;
			height = 300;
			default_button = push_button fine_button;
				};

		controls {
			menu_bar    query_Menu_Bar;
				.
				.
				.
			};
		callbacks {
			create = procedure CreateWid(wid_queryDialogBox);
		};
	};

object
	query_Menu_Bar	: menu_bar {
	    arguments {
		    adb_left_attachment = DwtAttachAdb;
		    adb_left_offset = 0;
		    adb_right_attachment = DwtAttachAdb;
		    adb_right_offset = 0;
		    orientation = DwtOrientationHorizontal;
		    menu_help_widget = pulldown_entry Query_Aiuto_Entry;
		      };
	    controls {
		    pulldown_entry Query_Controllo_Entry;
		    pulldown_entry Query_File_Entry;
		    pulldown_entry Query_Aiuto_Entry;
		     };
	};

493.6use attached dialogR2ME2::OBRYANTue Nov 27 1990 14:1110
re:.5

>object
>   	queryDialogBox : popup_dialog_box {

Try
   	queryDialogBox : popup_attached_db {
				^^^^^^^^^^
'Regular' dialogs do not acknowledge 'attachment' arguments in their children.