Hello
cg 2.4.0.91
IW 14.0.34
I have a IWCGJQDialog on which multiple IWCGJQEdits reside. The IWCGJQEdits are attached to a kbmMemTable. The Zindex of the IWCGJQedits are set to a higher value in the OnCreate event of the frame on which the IWCGJQDialgoEx resides.
The following code will display the IWCGJQDialog. An image of the IWCGJQDialog is shown below the code.
procedure TIWCGFrame_PtInfo.IWCGJQRadioButtonExNewGeneralDentistJQRadioOptionsClick(Sender: TObject; AParams: TStringList);
begin
if UserSession.tempGeneralDentistType = 'Original' then
begin
IWCGJQRadioButtonExNewGeneralDentist.Caption := 'View Proposed General Dentist';
IWCGJQRadioButtonExNewGeneralDentist.Checked := True;
UserSession.tempGeneralDentistType := 'Proposed';
with UserSession.kbmMemTableGeneralDentist do
begin
EmptyTable;
Insert;
Post;
end;
IWCGJQDialogExNewGeneralDentist.Visible := True;
IWCGJQDialogExNewGeneralDentist.AjaxReRender(False, False);
end;
end;
From the displayed dialog (shown above) I can click the edit button on the navigator and the fields will be enabled and editable. See image below.
The problem::
If I wrap the above code inside a modal IWCGJQMessage dialog, the IWCGJQDialogEx.will still display and when the edit button on the navigator is pressed the edits appear enabled, i.e. dialog appears just as it does in the two images above. However, the edits are, in fact, not editable. The code with the IWCGJQMessage is shown below.
procedure TIWCGFrame_PtInfo.IWCGJQRadioButtonExNewGeneralDentistJQRadioOptionsClick(Sender: TObject; AParams: TStringList);
var
tempDlg: TIWCGJQMsgDialog;
begin
if UserSession.tempGeneralDentistType = 'Original' then
begin
tempDlg := IWCGMessageDlg('Do you wish to replace the patient''s original general dentist record with a new unlisted general dentist?',
mtConfirmation, [mbYes, mbNo],
procedure(ADlg: TIWCGJQMsgDialog; AModalResult: TModalResult)
begin
if AModalResult = mrYes then // By definition the AModalResult will be mrOK
begin
IWCGJQRadioButtonExNewGeneralDentist.Caption := 'View Proposed General Dentist';
IWCGJQRadioButtonExNewGeneralDentist.Checked := True;
UserSession.tempGeneralDentistType := 'Proposed';
with UserSession.kbmMemTableGeneralDentist do
begin
EmptyTable;
Insert;
Post;
end;
IWCGJQDialogExNewGeneralDentist.Visible := True;
IWCGJQDialogExNewGeneralDentist.AjaxReRender(False, True);
end;
if AModalResult = mrNo then // By definition the AModalResult will be mrOK
begin
IWCGJQRadioButtonExNewGeneralDentist.Checked := False;
end;
end
);
tempDlg.Height := 175;
tempDlg.Width := 300;
tempDlg.StyleRenderOptions.RenderSize := False;
end;
end;
Suggestions?
John
a) I have multiple IWCGJQEdit components placed on a IWCGJQDialogEx component. The ZIndex of the IWCGJQEdits are set to a high level when the frame on which the components set is created.
b) The following code displays the is placed procedure If I
procedure TIWCGFrame_PtInfo.IWCGJQRadioButtonExNewGeneralDentistJQRadioOptionsClick(Sender: TObject; AParams: TStringList);