home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1996 December
/
PCWKCD1296.iso
/
vjplusb
/
activex
/
inetsdk
/
help
/
activex.aux
/
startup.mac
< prev
Wrap
Text File
|
1996-07-12
|
11KB
|
269 lines
#
# Main Menu Bar
#
AppendItem(`bb_menu',`mnu_file',`&File',`')
AppendItem(`bb_menu',`mnu_edit',`&Edit',`')
AppendItem(`bb_menu',`mnu_view',`&View',`')
AppendItem(`bb_menu',`mnu_contents',`&Contents',`')
AppendItem(`bb_menu',`mnu_tools',`&Tools',`')
AppendItem(`bb_menu',`mnu_help',`&Help',`')
#
# File Menu
#
AppendItem(`mnu_file',`mnu_open',`&Open...\tCtrl+O',`Open()')
AppendItem(`mnu_file',`',`',`')
AppendItem(`mnu_file',`mnu_prtop',`&Print...\tCtrl+P',`Print()')
AppendItem(`mnu_file',`mnu_prsetup',`Print &Setup...',`PrintSetup()')
AppendItem(`mnu_file',`',`',`')
AppendItem(`mnu_file',`mnu_exit',`E&xit',`Exit()')
#
# Edit Menu
#
# Slack-Hack! Note that the params for CutPaste() happen to equate to
# the message defines for WM_CUT and WM_PASTE. I don't have a problem
# with it. MC.
#
# HACK ALERT HACK ALERT Grody grody! ...Craig
#
AppendItem(`mnu_edit',`mnu_cut',`Cu&t\tCtrl+X',`CutPaste(768)')
AppendItem(`mnu_edit',`mnu_copy',`&Copy\tCtrl+C',`CopyTopic()')
AppendItem(`mnu_edit',`mnu_paste',`&Paste\tCtrl+V',`CutPaste(770)')
AppendItem("mnu_edit","mnu_selall","&Select All\tCtrl+A","SelectAll()")
DisableItem(`mnu_cut')
DisableItem(`mnu_paste')
#
# View Menu
#
AppendItem(`mnu_view',`mnu_split2',`&Contents and Topic',`ConfigurePanes(2)')
AppendItem(`mnu_view',`mnu_split1',`&Topic Only',`ConfigurePanes(1)')
AppendItem(`mnu_view',`mnu_split3',`Contents &Only',`ConfigurePanes(3)')
AppendItem(`mnu_view',`',`',`')
AppendItem(`mnu_view',`mnu_vann',`&Annotation',`AnnotateTopic(1)')
AppendItem(`mnu_view',`',`',`')
AppendItem(`mnu_view',`mnu_split',`&Split',`KeyboardSplit()')
AppendItem(`mnu_view',`',`',`')
AppendItem(`mnu_view',`mnu_hnext',`&Next Highlight\tCtrl+D',`ScrollHighlight(1)')
AppendItem(`mnu_view',`mnu_hprev',`&Prev Highlight\tCtrl+U',`ScrollHighlight(-1)')
#
# Contents Menu
#
AppendItem(`mnu_contents',`',`',`')
AppendItem(`mnu_contents',`mnu_def',`&Define Subset...',`DefineFilter()')
AppendItem(`mnu_contents',`',`',`')
#
# Tools Menu
#
### Remove these two lines to eliminate the keyword index
###
AppendItem(`mnu_tools',`mnu_keyw',`&Keyword Index...\tCtrl+K',`KeywordDialog("*.kwd")')
AppendItem(`mnu_tools',`',`',`')
AppendItem(`mnu_tools',`mnu_prevsrch',`Find &Results...',`OpenSearchResults()')
AppendItem(`mnu_tools',`mnu_back',`&History...',`ShowHistoryList()')
AppendItem(`mnu_tools',`mnu_bkmk',`&Bookmarks...',`ShowBookmarkList()')
AppendItem(`mnu_tools',`',`',`')
AppendItem(`mnu_tools',`mnu_search',`&Find...\tCtrl+F',`Search()')
AppendItem(`mnu_tools',`',`',`')
AppendItem(`mnu_tools',`mnu_opt',`&Options...',`DoOptions()')
#
# Help Menu
#
### add custom help items here
###
AppendItem(`mnu_help',`mnu_helpcon',`&Help Index...\tF1',`BrowserHelp("",0)')
AppendItem(`mnu_help',`',`',`')
AppendItem(`mnu_help',`mnu_about',`&About...',`About()')
#
# Buttons for the main button bar
#
AppendItem(`bb_main',`btn_p3',`',`ConfigurePanes(3)')
ButtonHelp("btn_p3","View Contents Only (Ctrl+Shift+C)")
SetButtonBitmap(`btn_p3',`buttons',29,5,0)
AppendItem(`bb_main',`btn_p2',`',`ConfigurePanes(2)')
ButtonHelp("btn_p2","View Both (Ctrl+Shift+S)")
SetButtonBitmap(`btn_p2',`buttons',29,4,0)
AppendItem(`bb_main',`btn_p1',`',`ConfigurePanes(1)')
ButtonHelp("btn_p1","View Topic Only (Ctrl+Shift+T)")
SetButtonBitmap(`btn_p1',`buttons',29,3,0)
AppendItem(`bb_main',`',`',`')
AppendItem(`bb_main',`btn_magn',`',`')
SetButtonBitmap(`btn_magn',`buttons',21,19,0)
ButtonHelp(`btn_magn',`Zoom Text (Ctrl+Shift+Z)')
AppendItem(`bb_main',`',`',`')
AppendItem(`bb_main',`btn_search',`',`Search()')
SetButtonBitmap(`btn_search',`buttons',29,1,0)
ButtonHelp("btn_search","Find (Ctrl+F)")
AppendItem(`bb_main',`',`',`')
### remove the next five lines to eliminate the keyword index
###
AppendItem(`bb_main',`btn_keyw',`',`KeywordDialog("*.kwd")')
ButtonHelp("btn_keyw","Keyword Index (Ctrl+K)")
SetButtonBitmap(`btn_keyw',"buttons",22,22,0)
AppendItem(`bb_main',`',`',`')
ButtonWidth(`btn_keyw',0)
AppendItem("bb_main","btn_srchres","","OpenSearchResults()")
ButtonHelp("btn_srchres","Find Results (Ctrl+Shift+F)")
SetButtonBitmap("btn_srchres","buttons",26,26,0)
AppendItem(`bb_main',`',`',`')
AppendItem("bb_main","btn_bkmks","","ShowBookmarkList()")
ButtonHelp("btn_bkmks","Bookmark List (Ctrl+Shift+B)")
SetButtonBitmap("btn_bkmks","buttons",12,12,0)
AppendItem(`bb_main',`',`',`')
AppendItem("bb_main","btn_histlist","","ShowHistoryList()")
ButtonHelp("btn_histlist","History List (Ctrl+Shift+H)")
SetButtonBitmap("btn_histlist","buttons",27,27,0)
AppendItem(`bb_main',`',`',`')
###
### here is an example of a custom button for a help file
### note the use of an aux file bitmap for the button image...
###
#AppendItem(`bb_main',`btn_brew',`',`ClickItem(`mnu_caffeine')')
#SetButtonBitmap(`btn_brew',`!brewbtn.bmp',1,1,0)
#ButtonHelp("btn_brew","Dr. GUI\'s Espresso Stand")
#ButtonWidth(`btn_brew',0)
#AppendItem(`bb_main',`',`',`')
AppendItem(`bb_main',`btn_help',`',`BrowserHelp("",0)')
SetButtonBitmap(`btn_help',`buttons',29,14,0)
ButtonHelp("btn_help","Help Index (F1)")
ButtonWidth(`btn_search btn_help btn_p1 btn_p2 btn_p3',0)
ButtonWidth(`btn_srchres btn_bkmks btn_histlist btn_magn',0)
#
# Buttons for the topic panes
#
AppendItem(`bb_topic',`btn_back',`',`Back()')
ButtonHelp(`btn_back',`Go Back (Ctrl+B)')
SetButtonBitmap(`btn_back',`buttons',29,8,0)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_prev',`',`PrevNextTopic(0)')
ButtonHelp(`btn_prev',`Previous in Contents (Ctrl+<)')
SetButtonBitmap(`btn_prev',`buttons',29,9,0)
AppendItem(`bb_topic',`btn_next',`',`PrevNextTopic(1)')
ButtonHelp(`btn_next',`Next in Contents (Ctrl+>)')
SetButtonBitmap(`btn_next',`buttons',29,10,1)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_lprev',`',`JumpList(-1)')
SetButtonBitmap(`btn_lprev',`buttons',29,28,0)
ButtonHelp(`btn_lprev',`Previous in List (Ctrl+Shift+<)')
AppendItem(`bb_topic',`btn_lnext',`',`JumpList(1)')
SetButtonBitmap(`btn_lnext',`buttons',29,29,1)
ButtonHelp(`btn_lnext',`Next in List (Ctrl+Shift+>)')
ButtonWidth(`btn_lprev btn_lnext',0)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_copy',`',`CopyTopic()')
ButtonHelp(`btn_copy',`Copy (Ctrl+C)');
SetButtonBitmap(`btn_copy',`buttons',29,6,0)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_print',`',`PrintTopic()')
ButtonHelp(`btn_print',`Print (Ctrl+P)')
SetButtonBitmap(`btn_print',`buttons',29,7,0)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_ann',`',`AnnotateTopic(1)')
ButtonHelp(`btn_ann',`View Annotation (Ctrl+Shift+A)')
SetButtonBitmap(`btn_ann',`buttons',29,11,0)
AppendItem(`bb_topic',`',`',`')
AppendItem(`bb_topic',`btn_sync',`',`SyncTopic(1)')
ButtonHelp(`btn_sync',`Sync Contents (Ctrl+Y)')
SetButtonBitmap(`btn_sync',`buttons',29,13,0)
AppendItem(`bb_topic',`',`',`')
AppendItem("bb_topic","btn_highlights","","ToggleHighlights()")
SetButtonBitmap("btn_highlights","buttons",25,25,0)
ButtonHelp("btn_highlights","Highlights (Ctrl+H)")
ButtonWidth(`btn_copy btn_print btn_ann btn_sync',0)
ButtonBarJustify(`bb_topic',1)
ButtonWidth(`btn_prev btn_next',0)
ButtonWidth(`btn_back btn_highlights',0)
DisableItem(`btn_back')
#
# magnifier settings
#
AppendItem("btn_magn","mnu_75","75%","SizeFont(75)")
AppendItem("btn_magn","mnu_90","90%","SizeFont(90)")
AppendItem("btn_magn","mnu_100","100%","SizeFont(100)")
AppendItem("btn_magn","mnu_110","110%","SizeFont(110)")
AppendItem("btn_magn","mnu_125","125%","SizeFont(125)")
#
# Keyboard accelerators
#
# Shift states:
# 1 == Shift
# 2 == Ctl
#
#
AddAccelerator(9,0,`NextControl()') # Tab
AddAccelerator(9,1,`PreviousControl()') # Shift-Tab
AddAccelerator(0x75,0,`NextPane()') # F6 == Focus to next pane.
AddAccelerator(0x75,1,`PreviousPane()') # Shift-F6 == Focus to previous pane.
AddAccelerator(0x70,0,`ClickItem("btn_help")') # F1 == Help
AddAccelerator(0x73,0x80,`ClickItem("btn_keyw")') # F4 == Keywords
AddAccelerator(0x4b,0x82,`ClickItem("btn_keyw")') # Ctrl-K == Keywords
AddAccelerator(0x74,0x80,`ClickItem("btn_search")') # F5 == Find Dlg
AddAccelerator(0x46,0x82,`ClickItem("btn_search")') # Ctrl-F == Find Dlg
#
# Back == ^R == 0x52 == 82
# List Prev == '-' == 0x6d
# List Next == '+' == 0x6b
# Next == shift right arrow.
# Prev == shift left arrow.
#
AddAccelerator(0x42,0x82,`ClickItem("btn_back")') # Ctrl-B == Back
AddAccelerator(0xBC,0x83,`ClickItem("btn_lprev")') # Ctrl+Shift+< == list prev
AddAccelerator(0xBE,0x83,`ClickItem("btn_lnext")') # Ctrl+Shift+> == list next
AddAccelerator(0xBC,0x82,`ClickItem("btn_prev")') # Ctrl+> == prev topic.
AddAccelerator(0xBE,0x82,`ClickItem("btn_next")') # Ctrl+> == next topic.
#
# F8 == keyboard selection mode.
#
AddAccelerator(0x77,0,`KeyboardSelect()') # F8 == Keyboard selection mode.
#
#
AddAccelerator(65,0x02,`ClickItem("mnu_selall")') # Ctrl+A == Select all
AddAccelerator(66,0x83,`ClickItem("btn_bkmks")') # Ctrl+Shift+B == Bookmark dlg.
AddAccelerator(67,0x02,`ClickItem("btn_copy")') # Ctrl+C == Edit-Copy
AddAccelerator(0x2D,0x02,`ClickItem("btn_copy")') # Ctrl+Insert == Edit-Copy
AddAccelerator(68,0x82,`ScrollHighlight(1)') # Ctrl+D == Next Highlight.
AddAccelerator(70,0x83,`ClickItem("mnu_prevsrch")') # Ctrl+Shift+F == Prev find res.
AddAccelerator(72,0x83,`ClickItem("mnu_back")') # Ctrl+Shift+H == History list dlg.
AddAccelerator(79,0x82,`ClickItem("mnu_open")') # Ctrl+O == Open Dlg.
AddAccelerator(80,0x82,`ClickItem("mnu_prtop")') # Ctrl+P == Menu print.
AddAccelerator(85,0x82,`ScrollHighlight(-1)') # Ctrl+U == Prev Highlight.
AddAccelerator(86,0x02,`ClickItem("mnu_paste")') # Ctrl+V == Edit paste.
AddAccelerator(0x2D,0x01,`ClickItem("mnu_paste")') # Shift+Ins == Edit paste.
AddAccelerator(88,0x02,`ClickItem("mnu_cut")') # Ctrl+X == Edit cut.
AddAccelerator(0x2E,0x01,`ClickItem("mnu_cut")') # Shift+Del == Edit cut.
AddAccelerator(0x48,0x82,`ClickItem("btn_highlights")') # Ctrl+L == Toggle highlights.
AddAccelerator(0x59,0x82,`ClickItem("btn_sync")') # Ctrl+Y == Sync
AddAccelerator(0x43,0x02,`ClickItem("btn_copy")') # Ctrl+C == Copy Topic.
AddAccelerator(0x53,0x83,`ClickItem("btn_p2")') # Ctrl+Shift+S == View Contents & Topic
AddAccelerator(0x54,0x83,`ClickItem("btn_p1")') # Ctrl+Shift+T == View Topic only
AddAccelerator(0x43,0x83,`ClickItem("btn_p3")') # Ctrl+Shift+C == View Contnets Only
AddAccelerator(0x41,0x83,`ClickItem("btn_ann")') # Ctrl+Shift+A == View Annotation
AddAccelerator(0x5a,0x83,`ClickItem("btn_magn")') # Ctrl+Shift+Z == Zoom Text