T.R | Title | User | Personal Name | Date | Lines |
---|
4534.1 | re .0 | BARREL::LEMMON | | Fri Feb 12 1993 11:25 | 4 |
| Unfortunately there is no way to change the menus to match
the background.
/Jim
|
4534.2 | DECwindows team (and now customer) think you can | CSC32::W_MCGAW | | Fri Feb 12 1993 13:34 | 11 |
| Hi Jim,
Someone on the DECwindows team here in the CSC/CS told the customer
that there is a widget that specifies the menubar and scroll bar
regions background and foreground colors. Is it that DECmcc doesn't
address this/these widget(s) or were they incorrect in that statement?
Normally, when you change the window foreground and background colors,
the menubar and scroll bars change with the window, how come DECmcc
doesn't work that way?
Walt
|
4534.3 | You can do it like this... | TOOK::BMURRAY | Bob Murray | Mon Feb 15 1993 12:35 | 41 |
|
Walt,
There is no such thing as a widget that specifies menubar and scroll
bar background and foreground colors. The background and foreground
colors are attributes of the menubar and scroll bar widgets. They are
altered by modifying the background and foreground resources of
the menubar and scroll bar widgets.
Unfortunately, the way resources are read from the mcc_resource.dat
file is done incorrectly therefore you cannot specify any other
resources in that file that are not already there. However, there is
a workaround that is undocumented ;')
What you want to do is create a file <my_resources.dat> or whatever
you want to call it. Then put in this resource file the resources you
want to modify. For instance:
*shell_class*XmRowColumn*background: Green
This resource will change the menubar (and any other Row Column widget
which is what the menubar is) to have a background color of green.
This will only change the Iconic Map window's widgets because we
specified "shell_class". "shell_class" is the Iconic Map class name.
It really should be something meaningful like "IMPM" but that's what
it is for now. To change the scrollbar background color you'd do
something like:
*shell_class*XmScrollBar*background: Green
Next, you MUST do a %setenv XENVIRONMENT <my_resources.dat>
to point to the resource file you just created. You might also be able
to put the resources in the .Xdefaults file (On Ultrix). When you have
done this then run the IMPM .
Hope this helps,
Bob Murray
|
4534.4 | How about under VMS? | CSC32::W_MCGAW | | Wed Feb 17 1993 17:27 | 50 |
| Hi Bob,
> There is no such thing as a widget that specifies menubar and scroll
> bar background and foreground colors. The background and foreground
> colors are attributes of the menubar and scroll bar widgets. They are
> altered by modifying the background and foreground resources of
> the menubar and scroll bar widgets.
> Unfortunately, the way resources are read from the mcc_resource.dat
> file is done incorrectly therefore you cannot specify any other
> resources in that file that are not already there. However, there is
> a workaround that is undocumented ;')
> What you want to do is create a file <my_resources.dat> or whatever
> you want to call it. Then put in this resource file the resources you
> want to modify. For instance:
> *shell_class*XmRowColumn*background: Green
> This resource will change the menubar (and any other Row Column widget
> which is what the menubar is) to have a background color of green.
> This will only change the Iconic Map window's widgets because we
> specified "shell_class". "shell_class" is the Iconic Map class name.
> It really should be something meaningful like "IMPM" but that's what
> it is for now. To change the scrollbar background color you'd do
> something like:
> *shell_class*XmScrollBar*background: Green
> Next, you MUST do a %setenv XENVIRONMENT <my_resources.dat>
> to point to the resource file you just created. You might also be able
> to put the resources in the .Xdefaults file (On Ultrix). When you have
> done this then run the IMPM .
From the above command, it looks like this <my_resources.dat> file is
created on an Ultrix / Unix node. I guess I was a little unclear on my
problem description or maybe I don't fully understand.
The HP750 runs Unix but is merely being used as a display terminal. DECmcc
(and the session manager I was referring) to reside on a VMS system. Is
there an equivalent command under VMS to substitute the
%setenv XENVIRONMENT <my_resources.dat>
command?
Thanks!
Walt
|
4534.5 | Use 'define' | TOOK::BMURRAY | Bob Murray | Thu Feb 18 1993 08:47 | 27 |
|
>The HP750 runs Unix but is merely being used as a display terminal. DECmcc
>(and the session manager I was referring) to reside on a VMS system. Is
>there an equivalent command under VMS to substitute the
Sorry, I assumed you were on Ultrix and figured you'd let me know
otherwise ;'). The equivalent to the 'setenv' in Ultrix on VMS is
'define'. The command:
%setenv XENVIRONMENT <my_resources.dat>
would be:
$define XENVIRONMENT <my_resources.dat>
on VMS.
This resource file resides on the *client* which is the system you are
running the Iconic Map on not displaying to. If the <my_resources.dat>
file is not in your sys$login then make sure you define XENVIRONEMNT
with the file's pathname also.
-Bob
|
4534.6 | Still not working... | CSC32::W_MCGAW | | Tue Mar 02 1993 11:41 | 11 |
| Hi Bob,
Sorry I didn't reply sooner but... I tried doing everything exactly as
you pointed out and could not get the menubar and scrollbar backgrounds
to change. I passed this information along to the customer anyway
(thinking maybe he'd have better luck) but he also could not make it
work. We ended up CLD'ing the call but if you have any other
suggestions in the meantime, they are welcome!
Walt
CSC/CS
|
4534.7 | | TOOK::BMURRAY | Bob Murray | Tue Mar 02 1993 15:10 | 22 |
|
Walt,
Hummm... works fine for me. I also just tried it on VMS and it worked
too. This is EXACTLY what I did:
1) Created a file called my_resources.dat in my sys$login area.
2) I put this line in the file:
*shell_class*XmScrollBar*background: Green
and then closed the file.
3) I then did a $DEFINE XENVIRONMENT sys$login:my_resources.dat
4) Then I ran V1.3 of the Iconic map.
My scrollbars came up Green. If for any reason it complains about not
knowing the color Green (it shouldn't) then pick another color like
Red or even better put a 32 bit hexadecimal value in there for the color.
-Bob
|
4534.8 | are there any other widgets? | CSC32::W_MCGAW | | Wed Mar 31 1993 12:54 | 12 |
| Hi,
The key to this was using the BMS V1.3 iconic map interface. Once we
did that, it worked fine. The customer is still having a problem with
the colors but now he wants to change the character colors of the menu
bar and it's pulldown boxes. I think he just wants to find out what
other widgets are available outside of DECmcc (MCC_RESOURCE.DAT) that
he can modify. Does anyone have a list of these so I can send it to
him and hopefully satisfy him?
Thanks,
Walt
|
4534.9 | | VERNA::V_GILBERT | | Thu Apr 01 1993 10:02 | 9 |
| Walt,
This can be done with any Motif widget in a similar fashion. We do not have
a list of all widgets, but Motif books might give you a list.
Some include XmText, XmScrolledWindow, XmBulletinBoard, XmMainWindow,
XmMessageBox, XmForm, XmFileSelectinBox.
Verna
|