Index: cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart.dsk
===================================================================
--- cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart.dsk	(revision 498)
+++ cprs/branches/tmg-cprs/CPRS-Chart/CPRSChart.dsk	(revision 541)
@@ -1,26 +1,95 @@
 [Closed Files]
-File_0=SourceModule,'C:\PROGRA~1\VISTA\BDK32\Source\TRPCB.pas',0,1,654,1,663,0,0
-File_1=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Encounter\rPCE.pas',0,1,879,15,887,0,0
-File_2=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Encounter\fPCEBase.pas',0,1,312,1,321,0,0
-File_3=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Encounter\fVisitType.pas',0,1,31,39,16,0,0
-File_4=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Consults\fEditProc.pas',0,1,1,1,1,0,0
-File_5=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Consults\fEditConsult.pas',0,1,1,1,1,0,0
-File_6=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Encounter\fEncVitals.pas',0,1,1,1,1,0,0
-File_7=SourceModule,'c:\program files\borland\delphi7\source\rtl\Win\Windows.pas',0,1,28836,1,28850,0,0
-File_8=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\fDCSumm.pas',0,1,932,1,954,0,0
-File_9=SourceModule,'c:\program files\borland\delphi7\source\rtl\Win\Messages.pas',0,1,28,1,13,0,0
+File_0=SourceModule,'P:\vista\CPRS-1.0.23.15\CPRS-Chart\fNotes.pas',0,1,1592,1,1601,0,0
+File_1=SourceModule,'c:\program files\borland\delphi7\source\vcl\Forms.pas',0,1,6867,19,6878,0,0
+File_2=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\fReminderDialog.pas',0,1,1177,15,1199,0,0
+File_3=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\Templates\uTemplates.pas',0,1,1924,78,1955,0,0
+File_4=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas',0,1,1713,1,1713,0,0
+File_5=SourceModule,'c:\program files\borland\delphi7\source\rtl\common\classes.pas',0,1,10956,1,10969,0,0
+File_6=SourceModule,'c:\program files\borland\delphi7\source\vcl\grids.pas',0,1,3918,1,3930,0,0
+File_7=SourceModule,'c:\program files\borland\delphi7\source\vcl\Controls.pas',0,1,6228,1,6245,0,0
+File_8=SourceModule,'P:\vista\CPRS-1.0.23.15\CPRS-Chart\fFrame.pas',0,1,2774,1,2791,0,0
+File_9=SourceModule,'P:\vista\tmg-cprs\CPRS-Chart\fSplash.pas',0,1,1,85,11,0,0
 
 [Modules]
-Module0=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsOther.pas
-Module1=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas
-Module2=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas
-Module3=c:\program files\borland\delphi7\source\rtl\Sys\variants.pas
-Module4=P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas
-Module5=P:\Vista\tmg-cprs\CPRS-Chart\fFrame.pas
-Module6=P:\vista\tmg-cprs\CPRS-Chart\CPRSChart.dpr
-Count=7
+Module0=C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas
+Module1=P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas
+Module2=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas
+Module3=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\EmbeddedED\EmbeddedED.pas
+Module4=P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas
+Module5=c:\program files\borland\delphi7\source\rtl\Sys\system.pas
+Module6=P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas
+Module7=P:\vista\CPRS-1.0.23.15\CPRS-Chart\fDrawers.pas
+Module8=P:\vista\tmg-cprs\CPRS-Chart\uReminders.pas
+Module9=P:\vista\tmg-cprs\CPRS-Chart\fDrawers.pas
+Module10=P:\vista\tmg-cprs\CPRS-Chart\fNotePrt.pas
+Module11=P:\vista\tmg-cprs\CPRSChart.ini
+Module12=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsOther.pas
+Module13=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas
+Module14=P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas
+Module15=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsNotes.pas
+Count=16
 EditWindowCount=1
 TypeLibWindowCount=1
 
+[C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\EmbeddedED\EmbeddedED.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[c:\program files\borland\delphi7\source\rtl\Sys\system.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\CPRS-1.0.23.15\CPRS-Chart\fDrawers.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\uReminders.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\fDrawers.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\fNotePrt.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRSChart.ini]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
 [P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsOther.pas]
 ModuleType=SourceModule
@@ -30,33 +99,22 @@
 [P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas]
 ModuleType=SourceModule
-FormState=1
-FormOnTop=0
-
-[P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas]
-ModuleType=SourceModule
-FormState=0
-FormOnTop=1
-
-[c:\program files\borland\delphi7\source\rtl\Sys\variants.pas]
-ModuleType=SourceModule
-FormState=0
-FormOnTop=0
-
-[P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas]
-ModuleType=SourceModule
-FormState=0
-FormOnTop=1
-
-[P:\Vista\tmg-cprs\CPRS-Chart\fFrame.pas]
-ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsNotes.pas]
+ModuleType=SourceModule
+FormState=0
+FormOnTop=0
+
+[C:\Program Files\Borland\Delphi7\Projects\ProjectGroup1.bpg]
 FormState=0
 FormOnTop=0
 
 [P:\vista\tmg-cprs\CPRS-Chart\CPRSChart.dpr]
-ModuleType=SourceModule
-FormState=0
-FormOnTop=0
-
-[C:\Program Files\Borland\Delphi7\Projects\ProjectGroup1.bpg]
 FormState=0
 FormOnTop=0
@@ -70,4 +128,8 @@
 FormOnTop=0
 
+[P:\vista\tmg-cprs\CPRS-Chart\dShared.pas]
+FormState=0
+FormOnTop=0
+
 [P:\vista\tmg-cprs\CPRS-Chart\fHSplit.pas]
 FormState=0
@@ -78,15 +140,7 @@
 FormOnTop=0
 
-[P:\vista\tmg-cprs\CPRS-Chart\Encounter\mVisitRelated.pas]
-FormState=0
-FormOnTop=0
-
-[P:\vista\tmg-cprs\CPRS-Chart\dShared.pas]
-FormState=0
-FormOnTop=0
-
 [EditWindow0]
-ViewCount=7
-CurrentView=5
+ViewCount=16
+CurrentView=9
 View0=0
 View1=1
@@ -96,4 +150,13 @@
 View5=5
 View6=6
+View7=7
+View8=8
+View9=9
+View10=10
+View11=11
+View12=12
+View13=13
+View14=14
+View15=15
 CodeExplorer=CodeExplorer@EditWindow0
 MessageView=MessageView@EditWindow0
@@ -101,57 +164,78 @@
 Visible=1
 State=0
-Left=81
-Top=156
-Width=780
-Height=588
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=772
-ClientHeight=554
+Left=-729
+Top=284
+Width=663
+Height=502
+MaxLeft=-4
+MaxTop=104
+ClientWidth=655
+ClientHeight=468
 LeftPanelSize=0
-LeftPanelClients=CodeExplorer@EditWindow0
-LeftPanelData=00000400010000000C000000436F64654578706C6F726572000000000000000000000000000000000001000000000000000000000000FFFFFFFF
+LeftPanelClients=DockSite0
+LeftPanelData=000004000100000009000000446F636B5369746530000000000000000000000000000000000001000000000000000000000000FFFFFFFF
 RightPanelSize=0
 BottomPanelSize=0
 BottomPanelClients=MessageView@EditWindow0
-BottomPanelData=00000400010000000B0000004D65737361676556696577040300000000000002BB000000000000000100000000000000000000000001000000000103000000000000010000000001030000000000000100000000C702000000000000010000000004030000000000000100000000040300000B0000004D65737361676556696577FFFFFFFF
+BottomPanelData=00000400010000000B0000004D657373616765566965778F020000000000000257000000000000000100000000000000000000000001000000002303000000000000010000000023030000000000000100000000230300000000000001000000008F0200000B0000004D65737361676556696577FFFFFFFF
 
 [View0]
-Module=P:\vista\tmg-cprs\CPRS-Chart\CPRSChart.dpr
-CursorX=1
-CursorY=12
+Module=P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas
+CursorX=1
+CursorY=4515
+TopLine=4502
+LeftCol=1
+
+[View1]
+Module=P:\vista\tmg-cprs\CPRS-Chart\fFrame.pas
+CursorX=1
+CursorY=3764
+TopLine=3752
+LeftCol=1
+
+[View2]
+Module=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsNotes.pas
+CursorX=13
+CursorY=313
+TopLine=311
+LeftCol=1
+
+[View3]
+Module=P:\vista\tmg-cprs\CPRS-Chart\fDrawers.pas
+CursorX=1
+CursorY=207
+TopLine=189
+LeftCol=1
+
+[View4]
+Module=P:\vista\tmg-cprs\CPRS-Chart\uReminders.pas
+CursorX=3
+CursorY=9
 TopLine=1
 LeftCol=1
 
-[View1]
-Module=P:\Vista\tmg-cprs\CPRS-Chart\fFrame.pas
-CursorX=15
-CursorY=19
-TopLine=11
-LeftCol=1
-
-[View2]
+[View5]
+Module=c:\program files\borland\delphi7\source\rtl\Sys\system.pas
+CursorX=1
+CursorY=11844
+TopLine=11822
+LeftCol=1
+
+[View6]
+Module=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\EmbeddedED\EmbeddedED.pas
+CursorX=1
+CursorY=2023
+TopLine=2010
+LeftCol=1
+
+[View7]
+Module=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\HTMLEdit\TMGHTML2.pas
+CursorX=1
+CursorY=189
+TopLine=178
+LeftCol=1
+
+[View8]
 Module=P:\vista\tmg-cprs\CPRS-Chart\fPtSel.pas
-CursorX=5
-CursorY=39
-TopLine=31
-LeftCol=1
-
-[View3]
-Module=P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas
-CursorX=43
-CursorY=299
-TopLine=292
-LeftCol=1
-
-[View4]
-Module=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas
-CursorX=1
-CursorY=390
-TopLine=385
-LeftCol=1
-
-[View5]
-Module=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsOther.pas
 CursorX=1
 CursorY=1
@@ -159,9 +243,51 @@
 LeftCol=1
 
-[View6]
-Module=c:\program files\borland\delphi7\source\rtl\Sys\variants.pas
-CursorX=1
-CursorY=609
-TopLine=595
+[View9]
+Module=C:\PROGRA~1\VISTA\BDK32\Source\wsockc.pas
+CursorX=1
+CursorY=1479
+TopLine=1468
+LeftCol=1
+
+[View10]
+Module=P:\vista\CPRS-1.0.23.15\CPRS-Chart\fDrawers.pas
+CursorX=1
+CursorY=1614
+TopLine=1605
+LeftCol=1
+
+[View11]
+Module=P:\vista\tmg-cprs\CPRS-Chart\rHTMLTools.pas
+CursorX=41
+CursorY=562
+TopLine=551
+LeftCol=1
+
+[View12]
+Module=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptions.pas
+CursorX=1
+CursorY=736
+TopLine=731
+LeftCol=1
+
+[View13]
+Module=P:\vista\tmg-cprs\CPRS-Chart\Options\fOptionsOther.pas
+CursorX=29
+CursorY=349
+TopLine=343
+LeftCol=1
+
+[View14]
+Module=P:\vista\tmg-cprs\CPRSChart.ini
+CursorX=9
+CursorY=18
+TopLine=1
+LeftCol=1
+
+[View15]
+Module=P:\vista\tmg-cprs\CPRS-Chart\fNotePrt.pas
+CursorX=19
+CursorY=242
+TopLine=231
 LeftCol=1
 
@@ -181,15 +307,9 @@
 
 [Watches]
-Count=10
-Watch0='Control',256,0,18,1,0,'Watches'
-Watch1='TabIndex',256,0,18,1,0,'Watches'
-Watch2='FCount',256,0,18,1,0,'Watches'
-Watch3='pageControl',16,0,18,1,0,'Watches'
-Watch4='ALabel',256,0,18,1,0,'Watches'
-Watch5='colorIndex',256,0,18,1,0,'Watches'
-Watch6='GetCapture',256,0,18,1,0,'Watches'
-Watch7='FOnException',8,0,18,1,0,'Watches'
-Watch8='E',16,0,18,1,0,'Watches'
-Watch9='actiontype',256,0,18,1,0,'Watches'
+Count=4
+Watch0='CachedWPField',256,0,18,1,0,'Watches'
+Watch1='DataForGrid.indexof',256,0,18,1,0,'Watches'
+Watch2='E',256,0,18,1,0,'Watches'
+Watch3='MarkForDelete',256,0,18,1,0,'Watches'
 
 [WatchWindow]
@@ -197,14 +317,14 @@
 WatchShowColumnHeaders=1
 Create=1
-Visible=0
-State=0
-Left=26
-Top=330
-Width=885
-Height=260
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=877
-ClientHeight=234
+Visible=1
+State=0
+Left=0
+Top=0
+Width=207
+Height=621
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=207
+ClientHeight=621
 TBDockHeight=234
 LRDockWidth=421
@@ -212,5 +332,12 @@
 
 [Breakpoints]
-Count=0
+Count=7
+Breakpoint0='P:\vista\tmg-cprs\CPRS-Chart\rCover.pas',315,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint1='P:\vista\tmg-cprs\TMG_Extra\HTMLEdit\TMGHTML2.pas',688,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint2='P:\vista\tmg-cprs\TMG_Extra\HTMLEdit\EmbeddedED\EmbeddedED.pas',1516,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint3='P:\vista\tmg-cprs\TMG_Extra\HTMLEdit\EmbeddedED\EmbeddedED.pas',1540,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint4='P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas',1710,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint5='P:\vista\tmg-cprs\CPRS-Chart\TMG_Extra\fPtDemoEdit.pas',1787,'',0,1,'',1,0,0,'',1,'','',''
+Breakpoint6='P:\vista\tmg-cprs\CPRS-Chart\fNotes.pas',4512,'',0,1,'',1,0,0,'',1,'','',''
 
 [AddressBreakpoints]
@@ -221,13 +348,13 @@
 Visible=1
 State=2
-Left=1064
-Top=175
-Width=123
+Left=170
+Top=3
+Width=854
 Height=112
 MaxLeft=-4
 MaxTop=-4
-MaxWidth=1032
+MaxWidth=808
 MaxHeight=112
-ClientWidth=1024
+ClientWidth=800
 ClientHeight=78
 
@@ -268,6 +395,6 @@
 Visible=0
 State=0
-Left=287
-Top=137
+Left=220
+Top=110
 Width=800
 Height=561
@@ -300,10 +427,10 @@
 Left=0
 Top=0
-Width=242
-Height=484
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=242
-ClientHeight=484
+Width=326
+Height=427
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=326
+ClientHeight=427
 TBDockHeight=527
 LRDockWidth=250
@@ -311,6 +438,6 @@
 SplitPos=128
 ArrangeBy=Name
-SelectedItem=Position
-ExpandedItems=Anchors
+SelectedItem=Top
+ExpandedItems=Anchors,Options
 HiddenCategories=Legacy
 
@@ -339,14 +466,14 @@
 [CallStackWindow]
 Create=1
-Visible=1
-State=0
-Left=-764
-Top=199
-Width=477
-Height=481
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=469
-ClientHeight=455
+Visible=0
+State=0
+Left=592
+Top=324
+Width=420
+Height=412
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=412
+ClientHeight=386
 TBDockHeight=355
 LRDockWidth=233
@@ -379,10 +506,10 @@
 Left=0
 Top=0
-Width=242
-Height=484
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=242
-ClientHeight=484
+Width=326
+Height=427
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=326
+ClientHeight=427
 TBDockHeight=527
 LRDockWidth=250
@@ -499,50 +626,70 @@
 [CodeExplorer@EditWindow0]
 Create=1
+Visible=1
+State=0
+Left=0
+Top=0
+Width=207
+Height=621
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=207
+ClientHeight=621
+TBDockHeight=305
+LRDockWidth=140
+Dockable=1
+
+[MessageView@EditWindow0]
+Create=1
+Visible=0
+State=0
+Left=12
+Top=0
+Width=643
+Height=87
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=643
+ClientHeight=87
+TBDockHeight=87
+LRDockWidth=443
+Dockable=1
+
+[DockHosts]
+DockHostCount=2
+
+[DockSite0]
+DockSiteType=1
+Create=1
 Visible=0
 State=0
 Left=0
 Top=12
-Width=140
-Height=351
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=140
-ClientHeight=351
-TBDockHeight=305
-LRDockWidth=140
-Dockable=1
-
-[MessageView@EditWindow0]
-Create=1
-Visible=0
-State=0
-Left=12
-Top=0
-Width=760
-Height=187
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=760
-ClientHeight=187
-TBDockHeight=187
-LRDockWidth=443
-Dockable=1
-
-[DockHosts]
-DockHostCount=1
-
-[DockSite0]
+Width=215
+Height=650
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=215
+ClientHeight=650
+TBDockHeight=94
+LRDockWidth=215
+Dockable=1
+TabPosition=0
+ActiveTab=Watch List
+TabDockClients=CodeExplorer@EditWindow0,WatchWindow
+
+[DockSite1]
 DockSiteType=1
 Create=1
 Visible=1
 State=0
-Left=-278
-Top=186
-Width=258
-Height=539
-MaxLeft=-1
-MaxTop=-1
-ClientWidth=250
-ClientHeight=513
+Left=-794
+Top=291
+Width=342
+Height=482
+MaxLeft=-1
+MaxTop=-1
+ClientWidth=334
+ClientHeight=456
 TBDockHeight=539
 LRDockWidth=258
