T.R | Title | User | Personal Name | Date | Lines |
---|
493.1 | attach menu bar to ADB | SMAUG::FLOWERS | IBM Interconnect Eng. 226-7716 | Tue Mar 28 1989 20:14 | 22 |
| 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.2 | Worked like a charm... | AIAG::PARIKH | Mehul Parikh. A I Applications Group | Wed Mar 29 1989 11:46 | 11 |
|
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.3 | Will menubar wrap in a POPUP ADB? | CSC32::B_KEMP | I just answer the phone | Thu May 10 1990 15:35 | 4 |
| 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.4 | MainWindow needed | DECWIN::KLEIN | | Thu May 10 1990 19:54 | 5 |
| 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.5 | MenuBar with PopupDialogBox does not WORK | EMC2::POGLIANI | Ducunt fata volentem, nolentem trahunt | Tue Nov 27 1990 08:07 | 68 |
| 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.6 | use attached dialog | R2ME2::OBRYAN | | Tue Nov 27 1990 14:11 | 10 |
|
re:.5
>object
> queryDialogBox : popup_dialog_box {
Try
queryDialogBox : popup_attached_db {
^^^^^^^^^^
'Regular' dialogs do not acknowledge 'attachment' arguments in their children.
|