Procedure

TfrmODGen.PlaceYesNo

Module

fODGen

Last Modified

7/15/2014 3:26:42 PM

Visibility

Private

Owner

TfrmODGen

Declaration

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

Calls Hierarchy


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

455   procedure TfrmODGen.PlaceYesNo(DialogCtrl: TDialogCtrl; DialogItem: TDialogItem; CurrentItemNumber: Integer);
456   const
457     NUM_CHAR = 9;
458   begin
459     with DialogCtrl do
460     begin
461       Editor := TORComboBox.Create(Self);
462       Editor.Parent := sbxMain;
463       TORComboBox(Editor).Style := orcsDropDown;
464       TORComboBox(Editor).ListItemsOnly := True;
465       TORComboBox(Editor).Pieces := '2';
466       SetComponentName(Editor, CurrentItemNumber, DialogCtrl);
467       //TORComboBox(Editor).Name := DialogCtrl.ID + IntToStr(CurrentItemNumber);
468       Editor.SetBounds(FEditorLeft, FEditorTop, NUM_CHAR * FCharWd, HT_FRAME * FCharHt);
469       TORComboBox(Editor).Items.Add('0^No');
470       TORComboBox(Editor).Items.Add('1^Yes');
471       TORComboBox(Editor).SelectByID(DialogItem.IDefault);
472       //TORComboBox(Editor).Text := DialogItem.EDefault;
473       TORComboBox(Editor).RpcCall := DialogItem.HelpText;
474       if Length(DialogItem.HelpText) > 0 then TORComboBox(Editor).ShowHint := True;
475       TORComboBox(Editor).OnChange := ControlChange;
476       PlaceLabel(DialogCtrl, DialogItem);
477       FEditorTop := FEditorTop + HT_FRAME + FCharHt + HT_SPACE;
478     end;
479   end;