Changeset 1679 for cprs/trunk/CPRS-Chart/fAllgyFind.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/fAllgyFind.pas
r830 r1679 6 6 Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, 7 7 fAutoSz, StdCtrls, ORFn, ORCtrls, ComCtrls, ImgList, VA508AccessibilityManager, 8 VA508ImageListLabeler ;8 VA508ImageListLabeler, ExtCtrls; 9 9 10 10 type … … 23 23 lblSearchCaption: TLabel; 24 24 imgLblAllgyFindTree: TVA508ImageListLabeler; 25 NoAllergylbl508: TVA508StaticText; 25 26 procedure cmdSearchClick(Sender: TObject); 26 27 procedure cmdCancelClick(Sender: TObject); … … 42 43 {$R *.DFM} 43 44 44 uses rODAllergy, fARTFreeTextMsg ;45 uses rODAllergy, fARTFreeTextMsg, VA508AccessibilityRouter; 45 46 46 47 const … … 87 88 var 88 89 uFileCount: integer; 90 ScreenReader: boolean; 89 91 90 92 procedure AllergyLookup(var Allergy: string; NKAEnabled: boolean); … … 95 97 try 96 98 ResizeFormToFont(TForm(frmAllgyFind)); 99 //TDP - CQ#19731 Need adjust 508StaticText label slightly when font 12 or larger 100 case frmAllgyFind.Font.Size of 101 18: frmAllgyFind.NoAllergylbl508.Left := frmAllgyFind.NoAllergylbl508.Left - 10; 102 14: frmAllgyFind.NoAllergylbl508.Left := frmAllgyFind.NoAllergylbl508.Left - 6; 103 12: frmAllgyFind.NoAllergylbl508.Left := frmAllgyFind.NoAllergylbl508.Left - 3; 104 end; 97 105 frmAllgyFind.ckNoKnownAllergies.Enabled := NKAEnabled; 106 //TDP - CQ#19731 make sure NoAllergylbl508 is enabled and visible if 107 // ckNoKnownAllergies is disabled 108 if (ScreenReaderSystemActive) and (frmAllgyFind.ckNoKnownAllergies.Enabled = False) then 109 begin 110 frmAllgyFind.NoAllergylbl508.Enabled := True; 111 frmAllgyFind.NoAllergylbl508.Visible := True; 112 end; 113 //TDP - CQ#19731 make sure NoAllergylbl508 is not enabled or visible if 114 // ckNoKnownAllergies is enabled 115 if frmAllgyFind.ckNoKnownAllergies.Enabled = True then 116 begin 117 frmAllgyFind.NoAllergylbl508.Enabled := False; 118 frmAllgyFind.NoAllergylbl508.Visible := False; 119 end; 98 120 frmAllgyFind.ShowModal; 99 121 Allergy := frmAllgyFind.FAllergy; … … 108 130 FAllergy := ''; 109 131 cmdOK.Enabled := False; 132 //TDP - CQ#19731 Allow tab to empty search results (tvAgent) when JAWS running 133 // and provide 508 hint 134 if ScreenReaderSystemActive then 135 begin 136 tvAgent.TabStop := True; 137 amgrMain.AccessText[tvAgent] := 'No Search Items to Display'; 138 ScreenReader := True; 139 end; 110 140 end; 111 141 … … 147 177 cmdSearch.Default := True; 148 178 stsFound.SimpleText := ST_NONE_FOUND; 179 180 //TDP - CQ#19731 Provide 508 hint for empty search results (tvAgent) when JAWS active. 181 if ScreenReader then amgrMain.AccessText[tvAgent] := 'No Search Items to Display' 182 //TDP - CQ#19731 Stop tab to empty search results (tvAgent) when JAWS not active. 183 else tvAgent.TabStop := False; 184 149 185 cmdOKClick(Self); 150 186 end else … … 193 229 end; 194 230 lblSelect.Visible := True; 231 232 //TDP - CQ#19731 Clear 508 hint when JAWS active. 233 if ScreenReader then amgrMain.AccessText[tvAgent] := '' 234 //TDP - CQ#19731 Allow tab to search results (tvAgent) when JAWS not active. 235 else tvAgent.TabStop := True; 236 195 237 tvAgent.SetFocus; 196 238 cmdSearch.Default := False; … … 201 243 AList.Free; 202 244 StatusText(''); 245 if stsFound.SimpleText = '' then stsFound.TabStop := False 246 else if ScreenReaderSystemActive then stsFound.TabStop := True; 203 247 end; 204 248 end; … … 300 344 lblSelect.Enabled := not Checked; 301 345 tvAgent.Enabled := not Checked; 302 cmdOK.Enabled := Checked; 346 347 // CQ #15770 - Allow OK button again if unchecked and items exist - JCS 348 //cmdOK.Enabled := Checked; 349 if Checked then 350 cmdOK.Enabled := True 351 else 352 cmdOK.Enabled := (tvAgent.Items.Count > 0); 303 353 end; 304 354 end;
Note:
See TracChangeset
for help on using the changeset viewer.