%=========================================================%
%                  AXON File Layouts                      %
%         Copyright(c) 1994-2000 Axon Research            %
%=========================================================%
OBJECT
======
  j_(12,"Y1",2,530,-68,14,22,162,5,1,0,5,"")  Example
  
  j_(WORD,STRING,IN_,IN_,IN_,IN_,IN_, IN_, IN_,UNSIGNED,DWORD,IN_,STRING) 
     Ref  ID     Lev  X   Y  Clr Actn Shape Size Style  LTRB  Seq Content
     
   Ref   = 1 to 65536 unique key
   ID    = String 
   Level = -250 to 250 (default is 1)  (IN_ means Integer)
   X = X mid-point -10000 to 10000    
   Y = Y mid-point -10000 to 10000
   Color = 0 to 31 as in Palette
   Action = 0 onwards (see below)
   Shape = 160 onwards (see below)
   Size  = 0 to 500, 5-small  15-normal  25-large  35-very large  45-extra large
   Style = 32 bits (see below)
   LTRB = Textwindow rect (4 Bytes), Each value divided by 8, (Device Units)
   Seq   = not used
   Content  = The text contents (hypertext or richtext) or Action Extension
   
Action =
  action_text		= 0  % Open Textwindow
  action_textfile	= 1  % Open TextFile*
  action_notepad	= 2  % Open NoteFile*
  action_writefile	= 3  % Open WriteFile*
  action_paintbrush	= 4  % Edit BMPFile*
  % action_bmpfile	= 5  % Display BMPFile* (obsolete)
  action_axonfile	= 6  % Load AxonFile*
  action_clone		= 7  % Clone fr File*
  action_exefile	= 8  % Run Program*
  action_down1		= 9  % Down 1 Level
  action_up1		= 10 % Up 1 Level
  action_goto_lev	= 11 % Goto Level*
  action_none		= 12 % No Action
  % action_wavfile	= 13 % Play WAVFile* (obsolete)
  action_return		= 14 % Return to Top Menu
  action_act_id		= 15 % Activate ID*
  action_act_ids	= 16 % Activate Linked IDs
  action_expand		= 17 % Increase scale by 25%
  action_contract	= 18 % Decrease scale by 25%
  action_checklist	= 19 % Open Checklist dlg
  action_quit		= 20 % End Axon
  action_showlinks	= 21 % Show all links
  % action_drill	= 22 % Drill Up/Dn (obsolete) dont reuse number
  action_back		= 23 % Backtrack
  action_play		= 24 % Play File*
  action_gosub_lev	= 25 % Gosub Level*
  action_escape		= 26 % Escape - eg return to prev level
  % action_index	= 27 % Auto Index (obsolete)
  % action_todo		= 28 % See Todo List (obsolete)
  action_dde_open	= 29 % DDE Open File 
  action_select_id	= 30 % Select 
  action_dde_exe	= 31 % DDE Execute
  action_dde_req	= 32 % DDE Request 
  action_generate	= 33 % Generate Ideas 
  action_toggle		= 34 % Toggle 0/1 
  action_compute	= 35 % Compute
  action_spin		= 36 % Spin 
  action_helpfile	= 37 % Open Helpfile* 
  action_sourcefile	= 38 % Open Source* 
  action_open		= 39 % Open (Associate)*
  action_subaxonfile	= 40 % OpenSub Axonfile* 
  action_change_id	= 41 % Change ID 
  action_rich		= 42 % Open RichText 
  action_recolor	= 43 % Toggle Color (Axon2001)
  action_invis_level	= 44 % Toggle Level (Axon2001)
    
Shape =
  obj_shapebar		= 160  % bar
  obj_shapebar3d	= 161  % box
  obj_shapeelli 	= 162  % ellipse
  obj_shapediamond	= 163  % diamond
  obj_shapecircle	= 164  % circle
  % obj_shapetext	= 165  % (obsolete) 
  obj_shapesquare	= 166  % square
  obj_shapebar2		= 167  % line2
  obj_shapeicon		= 168  % icon  (actual numbers >200)
  obj_shapepictL	= 169  % picture (linked)
  obj_shapeID		= 170  % symbol
  % obj_shapesymbol	= 171  % (obsolete)
  obj_shapebar1		= 172  % line1
  obj_shapepictE	= 173  % picture (embedded) Axon2001
  obj_shapepoly3	= 183  % polygon3
  obj_shapepoly4	= 184  % polygon4
  obj_shapepoly5	= 185  % polygon5
  obj_shapepoly6	= 186  % polygon6
  obj_shapepoly7	= 187  % polygon7
  obj_shapepoly8	= 188  % polygon8

Style = 
	Bit 1 - WordWrap   istyle_wrap = 1
	Bit 2 - Font	   istyle_font = 2 (0-basic 1-alternate)	
	Bit 3 - HideLinks istyle_hidelinks = 4
	Bit 4 - Protect    istyle_prot = 8
	Bit 5 - DepthBit0  istyle_depthbit0 = 16 (Primary = 0)
	Bit 6 - DepthBit1  istyle_depthbit1 = 32
	Bit 7 - DepthBit2  istyle_depthbit2 = 64
	% Bit 8 - Cluster  istyle_cluster   = 128 (obsolete)
	Bit 8 - Fixed width istyle_fwidth = 128 (Bar and Symbol only) 
	Bit 9 - ReplaceID  istyle_replaceID = 256
	Bit10 - NoPrint/Seq istyle_noprint  = 512
	Bit11 - DropText   istyle_drawtext = 1024
	Bit12 - Center ID  istyle_center  = 2048 (0=center 1=align left)
	Bit13 - Transparent istyle_transp = 4096 (0=opaque) Axon2001
	Bit14 - Protrude istyle_protrude  = 8192 (0=protrude, 1=flat) Axon2001
	Bit15 - Underline ID istyle_underline = 16384   Axon2001
	Bit16-32 Unused

OBJECT BINARY
-------------
    bin_(WORD,IN_,    STRING,IN_,IN_,BINARY)
	 Ref  BinType Exten  X   Y   Binary
	 
         Ref = 	1 to 65536 unique key
         BinType = bin_pictE = 1
		   bin_pictL = 2
         Extension = For embedded file - File extension (e.g. ".bmp" ".wmf")
                     For linked file - Filename
         X,Y =  unused (Default 0,0)
         Binary = Compressed picture (Default $[00])
============================================================================
   
LINKS
=====
  b_(WORD, WORD, UNSIGNED, DWORD,      DWORD,   IN_,STRING)
    Ref-fr Ref-to Bits Shape-Style LabelPos-Clr Pos Label
    
    Ref-fr = From Object Ref
    Ref-to = To Object Ref
    Bits = 32 bits (See Below)
    Shape(HIWORD)    0-straight 1-vert/horz 2-horz/vert
    		     3-vert/horz/vert 4-horz/vert/horz
                     5-curve1 6-curve2 7-tapered 8-doubleline
                     9-horz-angle 10-angle-horz 11-arc
                     16-temporary(for sequencing)
    Style(LOBYTE) = 0-solid 1-dash 2-dot 3-dashdot 4-dashdotdot 5-invisible 
                    6-thick 7-variable 8-thin
    Style(HIBYTE) = 0-straight 1-vert/horz  2-horz/vert
    Pos = Label Position = 0 to 100, default=0
    Clr = Color Number = 0 to 31 as in Palette
    Pos(LOBYTE) = From ID(0-auto 1-center 2-left 3-top 4-right 5-bot 6-LT 7-RT 8-RB
    Pos(HIBYTE) = To ID   9-LB 10-rect 11-ellipse 12-circle 13-diam 14-line1 15-line2)
    Label = Any string (first token may be numeric)
    
     Bits - Bit 0 & 1 - Number of heads (0,1,2) at head (To)
            Bit 2 - Critical Path = 1, else 0
            Bit 3 - Tilt always=1 Auto=0 (dep on length)
            Bit 4 & 5 - Number of heads (0,1,2) at tail (Fr)
            Bit 6 - Arrowhead shape 0- >  1-  |>  (used together with Bit 10) (No more used)
	    % Bit 7 - 0-sharp 1-rounded  (See Curvature bits 7,13,14)
            Bit 8 - 0-Follow Link color 1-Follow Line Pattern color
	    % Bit 9 - 0-above Link 1-below Link (obsolete in Axon99 - retain for migration till Axon2000)
	    Bit 9 - No Seq (New in Axon2001) 0-Seq 1-NoSeq
            % Bit10 - Arrowhead shape 0-1st set, 1-2nd set (+)  (obsolete)
            Bit11 - Multiline 0-single 1-multi (multiline cannot tilt)
            Bit 12 - Thickness 0-thin 1-thick (New in Axon2000)    
            Bit 7,13,14 - Curvature (0-st 1-round 2,3...7)
            Bit 15, 16 - Reserved for Curvature (future)
            Bit 17,18,19,20 - Arrowhead Shape - Fr (New in Axon2001)
            Bit 21,22,23,24 - Arrowhead Shape - To (New in Axon2001)
  
  Arrowhead Shape
  ---------------
              0 --->
              1 --|> solid
              2 ---+
              3 --<> solid
              4 --|>
              5 --<>

==========================================================================================
              
SHAPE
===== 
  s_(WORD,IN_,IN_,   WORD,    IN_, IN_,IN_,IN_,IN_) 
     Ref Shape Lev Curve-Clr Style L   T   R   B
   Ref = 1 to 65536, same Ref for Shapes within a Group
   Shape = 0 onwards, (see below)
   Lev = Level (-250 to 250)
   Curvature HIBYTE = 0 to 64
   Color LOBYTE = 1 TO 31
   Style = Bits (see below)
   L,T,R,B = Boundary
   
   Shape = 1 - Rectangle
   	   2 - Rounded Rect
           3 - Ellipse
           4 - Diamond
           5 - Triangle-vert
           6 - Triangle-horz
           7 - Line
           8 - Corner
           9 - Arc
           10- Half Ellipse(horz)
           11- Half Ellipse(vert)
           12- Semicircle(horz)
           13- Semicircle(vert)
           14- Arrow (1 head)
           15- Arrow (2 heads)
           21- Bracket 1
           22- Bracket 2
           23- Arc0 (flat)
              
    Link Style - LowByte
    		Bit0 - 0-Outline  1-Solid or Hatched  (SolidBit) no more used?
   		Bit1 - 0-Thin     1-Thick    (ThickBit)
                Bit2 - 0-Continuous 1-Dashed (DashBit)
                Bit3 - 0-Normal   1-Dotted  
                Bit4 - 0-Normal   1-Rotate 90 deg clockwise
                Bit5 - 0-Normal   1-Grouped
                Bit6 - 0-Same color pen 1-Global Pen color
                Bit7 - Unused
    Brush Style - HiByte
         0=Outline (not used in older files)
         1=Solid   (not used in older files)
         2 to 8 = hs_ + 2
           hs_horizontal=0
           hs_vert=1
           hs_fdiagonal=2
           hs_bdiagonal=3
           hs_cross=4
           hs_diagcross=5
          ( Bit 8 is not identical to Bit0)

=======================================================================

POINT
=====
      x_(IN_,IN_,DWORD,IN_,   INTLIST)   
        Shape Lev RGB  Unused PointList
        
  Shape:  pt_doodle = 1
	  pt_cross = 2
	  pt_x = 3
	  pt_circle = 4 
	  pt_square = 5
	  pt_triang = 6
	  pt_pixel = 7             
  Lev = -250 to 250
  RGB = Color
  PointList = [X1,Y1,X2,Y2,...] 
  
========================================================================

PARAMETER   
=========
   p_(IN_ Para, IN_ Value)  
	
   Para 1 - Background Color (Def=2)
   Para 3 - Blending Color
   Para 5 - Line Pattern Color (Def=15)
   Para 59 - Draw Sequence (0 - Objects behind, 1 - Shapes behind)
   Para 68 - Object Protrude (0-yes, 1-no)
   Para 73 - Opaque Links (0=no 1=yes)
   Para 75 - Critical Path rounding (1=0.01 of time unit)
   Para 87 - Display Only (0-no 1-yes)
   Para 210 - Background IconNo 
   Para 216 - First Ref  0=Undefined  (used by Sequence and IdeaGen)
   Para 228 - Box Global Depth (0-Variable,1,2...100)
   Para 310 - Default Palette color# (Default=2 light blue)
   Para 320 - Spell Check Language (0-US English 1-UK English)
   Para 350 - Version that creates/saves file(20010=Axon2000 Rel 1.0 20120=Axon2001 Rel 2.0) Def=0
   Para 358 - Search curr path first
   Para 359 - Richtext window color (0-white 1-object 2-bkgrd1 3-bkgrd2 4-bkgrd3)

  q_(IN_ Para, STRING Value)
  
  Para 2  - Basic Font name (Default="Arial")
  Para 12 - Alternate Font name (Default="Times New Roman")
  Para 13 - Text Font name (Default="Arial")
  Para 14 - Label Font name (Default="Times New Roman")
  Para 15 - Droptext Font name (Default="Arial")  New in Axon2000
  Para 22 - File Title (also used by .htm)
  Para 23 - Background bitmap filename
  Para 24 - Slideshow opening mci_Play command
  Para 25 - Text View Numbering (Default="1.1.1.1")
  Para 26 - Decimal Format (e.g. "-5.2") Only if there is dec pt. Else blank or "g"   
  
============================== END =================================