Procedure

TfrmODGen.PlaceDateTime

Module

fODGen

Last Modified

7/15/2014 3:26:42 PM

Visibility

Private

Owner

TfrmODGen

Declaration

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

Calls Hierarchy


TfrmODGen.PlaceDateTime
 ├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.PlaceDateTime
  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

355   procedure TfrmODGen.PlaceDateTime(DialogCtrl: TDialogCtrl; DialogItem: TDialogItem; CurrentItemNumber: Integer);
356   const
357     NUM_CHAR = 22;
358   begin
359     with DialogCtrl do
360     begin
361       Editor := TORDateBox.Create(Self);
362       Editor.Parent := sbxMain;
363       Editor.SetBounds(FEditorLeft, FEditorTop, NUM_CHAR * FCharWd, HT_FRAME * FCharHt);
364       TORDateBox(Editor).DateOnly := Pos('T', DialogItem.Domain) = 0;
365       with TORDateBox(Editor) do RequireTime := (not DateOnly) and (Pos('R', DialogItem.Domain) > 0); //v26.48 - RV  PSI-05-002
366       SetComponentName(Editor, CurrentItemNumber, DialogCtrl);
367     //  TORDateBox(Editor).Name := DialogCtrl.ID + IntToStr(CurrentItemNumber);
368       TORDateBox(Editor).Text := DialogItem.EDefault;
369       TORDateBox(Editor).Hint := DialogItem.HelpText;
370       TORDateBox(Editor).Caption := DialogItem.Prompt;
371       if Length(DialogItem.HelpText) > 0 then TORDateBox(Editor).ShowHint := True;
372       TORDateBox(Editor).OnExit := ControlChange;
373       PlaceLabel(DialogCtrl, DialogItem);
374       FEditorTop := FEditorTop + HT_FRAME + FCharHt + HT_SPACE;
375     end;
376   end;