Procedure

TfrmODGen.PlaceNumeric

Module

fODGen

Last Modified

7/15/2014 3:26:42 PM

Visibility

Private

Owner

TfrmODGen

Declaration

procedure PlaceNumeric(DialogCtrl: TDialogCtrl; DialogItem: TDialogItem; CurrentItemNumber: Integer);

Calls Hierarchy


TfrmODGen.PlaceNumeric
 ├TfrmODGen.SetComponentName
 ├TfrmODGen.ControlChange
 │ ├TResponses.Update
 │ │ ├TResponses.FindResponseByName
 │ │ └TResponses.IENForPrompt
 │ └TResponses.GetOrderText
 │   ├TResponses.NextInstance
 │   ├TResponses.FindResponseByName
 │   ├TResponses.FormatResponse
 │   │ └TResponses.FindResponseByIEN
 │   └TResponses.AppendChildren
 │     ├TResponses.FindPromptByIEN
 │     ├TResponses.FindResponseByIEN
 │     └TResponses.FormatResponse...
 └TfrmODGen.PlaceLabel

Called-By Hierarchy


     TfrmODGen.PlaceNumeric
  TfrmODGen.PlaceControls┘ 
 TfrmODGen.SetDialogIEN┘   
TfrmODGen.SetupDialog┘     

Calls

Name Declaration Comments
TfrmODGen.ControlChange procedure ControlChange(Sender: TObject); -
TfrmODGen.PlaceLabel procedure PlaceLabel(DialogCtrl: TDialogCtrl; DialogItem: TDialogItem); -
TfrmODGen.SetComponentName procedure SetComponentName(Editor: TWinControl; Index: Integer; DialogCtrl: TDialogCtrl); -

Called-By

Name Declaration Comments
TfrmODGen.PlaceControls procedure PlaceControls; -


Source

400   procedure TfrmODGen.PlaceNumeric(DialogCtrl: TDialogCtrl; DialogItem: TDialogItem; CurrentItemNumber: Integer);
401   const
402     NUM_CHAR = 16;
403   begin
404     with DialogCtrl do
405     begin
406       Editor := TCaptionEdit.Create(Self);
407       Editor.Parent := sbxMain;
408       Editor.SetBounds(FEditorLeft, FEditorTop, NUM_CHAR * FCharWd, HT_FRAME * FCharHt);
409       TEdit(Editor).MaxLength := NUM_CHAR;
410       SetComponentName(Editor, CurrentItemNumber, DialogCtrl);
411      // TCaptionEdit(Editor).Name := DialogCtrl.ID + IntToStr(CurrentItemNumber);
412       TEdit(Editor).Text := DialogItem.EDefault;
413       TEdit(Editor).Hint := DialogItem.HelpText + '|' + DialogItem.Domain;
414       TCaptionEdit(Editor).Caption := DialogItem.Prompt;
415       if Length(DialogItem.HelpText) > 0 then TEdit(Editor).ShowHint := True;
416       TEdit(Editor).OnChange := ControlChange;
417       PlaceLabel(DialogCtrl, DialogItem);
418       FEditorTop := FEditorTop + HT_FRAME + FCharHt + HT_SPACE;
419     end;
420   end;