[Python-checkins] python/dist/src/Doc/tools prechm.py,1.12,1.13

tim_one@sourceforge.net tim_one@sourceforge.net
Sat, 20 Apr 2002 19:01:04 -0700


Update of /cvsroot/python/python/dist/src/Doc/tools
In directory usw-pr-cvs1:/tmp/cvs-serv8922

Modified Files:
	prechm.py 
Log Message:
Give the Help viewer a font-size button.  This isn't documented by MS,
but is documented by others on the web, and the defn of the magic flag
needed appears in MS's htmlhelp.h header file.


Index: prechm.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/tools/prechm.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** prechm.py	20 Apr 2002 21:34:34 -0000	1.12
--- prechm.py	21 Apr 2002 02:01:01 -0000	1.13
***************
*** 37,40 ****
--- 37,69 ----
  # The magical numbers in the long line under [WINDOWS] set most of the
  # user-visible features (visible buttons, tabs, etc).
+ # About 0x10384e:  This defines the buttons in the help viewer.  The
+ # following defns are taken from htmlhelp.h.  Not all possibilities
+ # actually work, and not all those that work are available from the Help
+ # Workshop GUI.  In particular, the Zoom/Font button works and is not
+ # available from the GUI.  The ones we're using are marked with 'x':
+ #
+ #    0x000002   Hide/Show   x
+ #    0x000004   Back        x
+ #    0x000008   Forward     x
+ #    0x000010   Stop
+ #    0x000020   Refresh
+ #    0x000040   Home        x
+ #    0x000080   Forward
+ #    0x000100   Back
+ #    0x000200   Notes
+ #    0x000400   Contents
+ #    0x000800   Locate      x
+ #    0x001000   Options     x
+ #    0x002000   Print       x
+ #    0x004000   Index
+ #    0x008000   Search
+ #    0x010000   History
+ #    0x020000   Favorites
+ #    0x040000   Jump 1
+ #    0x080000   Jump 2
+ #    0x100000   Zoom/Font   x
+ #    0x200000   TOC Next
+ #    0x400000   TOC Prev
+ 
  project_template = '''
  [OPTIONS]
***************
*** 52,56 ****
  [WINDOWS]
  %(arch)s="Python %(version)s Documentation","%(arch)s.hhc","%(arch)s.hhk",\
! "index.html","index.html",,,,,0x63520,220,0x384e,[271,372,740,718],,,,,,,0
  
  [FILES]
--- 81,85 ----
  [WINDOWS]
  %(arch)s="Python %(version)s Documentation","%(arch)s.hhc","%(arch)s.hhk",\
! "index.html","index.html",,,,,0x63520,220,0x10384e,[271,372,740,718],,,,,,,0
  
  [FILES]