1
2The following are other uses for the xbmbroswer which has been
3suggested by users.. Maybe you can do better..
4
5-------------------------------------------------------------------------------
6Application Script Launcher
7
8Idea : Jim Spath <jspath@mail.bcpl.lib.md.us>     20 July 1995
9
10Create a directory with the appropriate icon images (bitmap or pixmap)
11and storing ".rc" lauch scripts under the same basename name.
12
13EG:    applcation.xpm  applcation.rc
14
15Now in this directory create the following xbmbrowser menu configuration
16file which I will call "Menu" in these examples but could be anything.
17
18=======8<--------
19#
20# XbmBrowser Application Launcher
21#
22menu "main"     # lets keep xbmbrowser happy!
23item "quit"  quit()
24
25menu "global"
26item "Execute"       exec("%b.rc" &)
27item "Edit"          exec("vi %b.rc")
28=======8<--------
29
30Then just execute xbmbrowser in this directory
31
32xbmbrowser -cf ./Menu
33
34To make this work even better you can hide the control panels at the top
35of the xbmbrowser by setting the following resources in your .Xdefaults or
36load them into the server with xrdb. NOTE: You can NOT set the max size to 0.
37
38   xb_launch.cmd_rc:        "./Menu"
39   xb_launch.icons_only:    True
40   xb_launch*buttons.max:   1
41   xb_launch*directory.max: 1
42   xb_launch*label.max:     1
43
44If all the icons are on one row across the browser you can remove the
45control panels entirely with the following resource. However you will have
46to set the geometry size of the browser, or it will not look very good.
47
48   xb_launch*main.refigureMode:  False
49
50Then run xbmbrowser with
51
52   ( cd {directory}; xbmbrowser -name xb_launch -geometry {whatever} & )
53
54Note: xbmbrowser CDs into a directory given on the command line after
55reading the configuration file, So we have to be in the right directory
56first.
57
58                                   Anthony Thyssen <anthony@cit.gu.edu.au>
59-------------------------------------------------------------------------------
60