Sponsored Content
Top Forums Shell Programming and Scripting Creating a Classification Banner Post 52324 by rambo15 on Tuesday 15th of June 2004 11:30:42 PM
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.
 

3 More Discussions You Might Find Interesting

1. 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

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 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
DtWsmSetWorkspaceTitle(API)											       DtWsmSetWorkspaceTitle(API)

NAME
DtWsmSetWorkspaceTitle -- set workspace title SYNOPSIS
#include <Dt/Wsm.h> int DtWsmSetWorkspaceTitle( Widget widget, Atom workspace, char *title); DESCRIPTION
The DtWsmSetWorkspaceTitle() function works with the CDE workspace manager, dtwm(1), and changes a specific workspace's title. Applications can use this function to implement an interface to the workspace manager. If the DtWsmSetWorkspaceTitle() function is not successful, the most likely reason for failure is that the CDE workspace manager, dtwm(1), is not running. The DtWsmSetWorkspaceTitle() function requires a widget. A gadget (or unrealized widget) is not acceptable for the widget argument. DtWsmSetWorkspaceTitle() sends a message to the CDE workspace manager, dtwm(1), to set the title. If the workspace name is not valid, no action is taken and the workspace manager reports no error. ARGUMENTS
widget A realized widget on the screen of interest workspace The name of the workspace (in X atom form) where the title should be set title The new title RETURN VALUE
The function returns Success (0) when it succeeds, and non-zero upon failure. Note that these are not the same values that _DtWsmSet- WorkspaceTitle returns. SEE ALSO
DtWsm(5) "Communicating with the Workspace Manager" section in the CDE Programmer's Guide "Workspace Manager" section in the CDE Programmer's Overview DtWsmSetWorkspaceTitle(API)
All times are GMT -4. The time now is 11:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy