Creating a Classification Banner


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Creating a Classification Banner
# 1  
Old 06-16-2004
Creating a Classification Banner

Hello;
I need to place a classification banner at the top of my Solaris 2.6 CDE Desktop. The Banner must be displayed in all CDE desktop sessions available on the CDE dashboard (1,2,3,4).

The Banner must remain anchored at the top of the CDE desktop and must not be able to be closed or hidden by other windows.

So far I have hit a brick wall on this. The closest I have come is trying to generate a banner (Push Button) using the following dtksh code.
#!/usr/dt/bin/dtksh
XtInitialize TOPLEVEL dttest1 Dtksh $0
XtSetValues $TOPLEVEL title:" "
#XtCreateManagedWidget BBOARD bboard XmBulletinBoard $TOPLEVEL \
# resizePolicy:RESIZE_NONE height:50 width:1280\
# background:Red
#XtCreateManagedWidget BUTTON pushbutton XmPushButton $BBOARD \
XtCreateManagedWidget BUTTON pushbutton XmPushButton $TOPLEVEL \
background:Red \
foreground:White \
labelString:"SECRET" \
height:50 width:1280 x:0 y:0 shadowThickness:3
XtRealizeWidget $TOPLEVEL
XtMainLoop

The problem is I can't figure out how to remove the CDE border, the CDE Open, Close and Iconify options, how to anchor it at the top, how to make it appear in all the workspaces and finally make the font larger.

Any and all help will be greatly appreciated.

Respectfully;
Mark K.
# 2  
Old 06-16-2004
One thing that you want is doable. You can add
fontList:"$font"
to your arguments to select a font. You set the font variable to one of your fonts and you can get a list of those with xlsfonts.

It doesn't make sense to be using XmPushButton if you're not going to install any callbacks. You should switch to XmLabel. I always use a bulletin board, but I guess you don't need it if you only have one widget.

An x client cannot defeat a window manager. I don't use CDE. I just use a rather raw xterminal running an internal window manager. My window manager, NCDwm, does have some resources that it is willing to respect. For example:
NCDwm.xlaunchpad4.clientDecoration: -border -title
will cause my xlauchpad4 client (also a dtksh script) to appear with no borders like most xclients have. That string is in my .Xresources file which I load with xrdb. Every other window manager that I've used has some stuff like this. So your CDE environment may have some resources that you could load to do some of what you want. But you'll have to check your CDE docs on that.
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Reading a file and Classification

Hello Everyone, I am new to UNIX. I have got a requirement. Thought of posting it in this forum so that someone might help me. Please have a look at the scenario. The Objective is to "classify books into four seperate files and then print a summary report". Specifications are as... (3 Replies)
Discussion started by: yarlagadda999
3 Replies

2. Shell Programming and Scripting

scripting for classification

hi i am very new to scripting. i am learning by myself. i found this example. can any one help in writing script for this example, so that i can have an idea how to analyse and script. example: overview: The aim of this exercise is to classify books into four seperate files and then print a... (1 Reply)
Discussion started by: yonex
1 Replies

3. UNIX Desktop Questions & Answers

CDE Classification Banner

Hello; I need to place a classification banner at the top of my Solaris 2.6 CDE Desktop. The Banner must be displayed in all CDE desktop sessions available on the CDE dashboard (1,2,3,4). The Banner must remain anchored at the top of the CDE desktop and must not be able to be closed or hidden... (0 Replies)
Discussion started by: rambo15
0 Replies
Login or Register to Ask a Question