Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Code Samples
  New Posts New Posts RSS Feed - Status Bar
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedStatus Bar

 Post Reply Post Reply
Author
Message
s4si View Drop Down
Newbie
Newbie


Joined: July 23 2004
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote s4si Quote  Post ReplyReply Direct Link To This Post Topic: Status Bar
    Posted: July 23 2004 at 3:40am
Can I add info to the Accuterm Status Bar or the Menu Bar? I would like to display the Port & Printer assignments in either of those areas.

Thanks
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: July 26 2004 at 10:41am
Hi -

You can customize the menu, toolbar or status bar using the Customize Menu item from the Tools menu. If this a menu that you wish to deploy company-wide, you probably should choose "application" for the menu scope. Then you can simply take your custom menu, which is saved in the ...\Program Files\Atwin\menu.ini file, and copy it to each user's ...\Atwin folder.

To add a status bar panel for the port number, open the menu customization tool (Tools->Customize Menu) and select "application", then click Continue. Click on the status bar in the node list in the left pane. Click the New button and choose Normal Panel. The new panel will be selected and its properties will be shown in the Tool Properties panel. All user-defined menu/toolbar/status bar items have ID's begining with 10001. The next available number will be used automatically, but you can change it to any unused value above 10000. Select a style and enter a default caption. You could enter "Port --" and select Fixed Width for the panel size, or enter "Port" and select Fit Contents for the panel size. Click OK and save the custom menu.

Finally, you need to write a small script to set the caption of your new status bar panel. The script is built as a string in a BASIC program and sent to AccuTerm for execution. Here is an example in Pick/BASIC:

PORT = 'Port ':SYSTEM(22)

MNUID = 10001
SCR = 'ActiveSession.Menu(' : MNUID : ').Caption = "' : PORT : '"'
PRINT CHAR(27) : CHAR(2) : 'P' : SCR : CHAR(13) :


If you want to initialize multiple panels, you can create a multi-line script using CHAR(25) between script lines. For example

SCR = SCR : CHAR(25) : 'ActiveSession ....



Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.