Summer 2002
Table of Contents | Home
Page 1  2
Using Saved Views

(continued from page 1)

Saved View Mapkeys

To make using saved views even faster, I suggest the use of mapkeys. Since the content of working saved views changes constantly, it is important to be able to save and retrieve these views quickly. For each saved view, there should be two mapkeys: one to save the view and the other to retrieve it. Below is an example of a set of mapkeys to generate and retrieve a view named v1. You can create additional mapkeys by copying and changing the text “v1” to another name.

Mapkey “sv1” is written to save a view named v1. (Note: You must write the mapkey so that if v1 already exists, you override the existing view.) Mapkey named “v1” retrieves the saved view named v1.

mapkey sv1 @MAPKEY_NAMEsave a working view named v1;@MAPKEY_LABELsave view 1;\

mapkey(continued) ~ Select `main_dlg_cur` `MenuBar1`1 `View`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `View.psh_view_named`;\

mapkey(continued) ~ Input `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v`;\

mapkey(continued) ~ Input `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v1`;\

mapkey(continued) ~ Update `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v1`;\

mapkey(continued) ~ Activate `vwsavretr` `VwSavRetr_PH.NameVw_PB_Save`;Yes;\

mapkey(continued) ~ Activate `vwsavretr` `Close`;
mapkey v1 ~ Select `main_dlg_cur` `MenuBar1`1 `View`;\
mapkey(continued) ~ Close `main_dlg_cur` `MenuBar1`;\
mapkey(continued) ~ Activate `main_dlg_cur` `View.psh_view_named`;\

mapkey(continued) ~ Input `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v`;\

mapkey(continued) ~ Input `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v1`;\

mapkey(continued) ~ Update `vwsavretr` `VwSavRetr_PH.NameVw_IP` `v1`;\

mapkey(continued) ~ Activate `vwsavretr` `VwSavRetr_PH.NameVw_PB_SetCur`;\

mapkey(continued) ~ Activate `vwsavretr` `Close`;

Now with the mapkeys, it is easy to create and retrieve the saved views. As you work, you can easily shift between views (Figures 5a and 5b).

Figures 5a and 5b. Use the two mapkeys (v1 and v2) to “jump” between the saved views.

Once you get the hang of creating and using saved views, you will be surprised at how much time you can really save.

Ronald B. Grabau is an MCAE engineer at HP. He can be reacehd by e-mail at Ronald.Grabau@hp.com.