Fixed #6: Text details not shown when first selecting
This commit is contained in:
parent
06734475e9
commit
7fe3eb6518
@ -780,10 +780,21 @@ end;
|
|||||||
|
|
||||||
|
|
||||||
procedure TX2LogObserverMonitorForm.SetVisibleDetails(AControl: TControl);
|
procedure TX2LogObserverMonitorForm.SetVisibleDetails(AControl: TControl);
|
||||||
|
var
|
||||||
|
text: string;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if Assigned(AControl) then
|
if Assigned(AControl) then
|
||||||
begin
|
begin
|
||||||
AControl.BringToFront;
|
AControl.BringToFront;
|
||||||
|
|
||||||
|
if (AControl = reDetails) and (not reDetails.HandleAllocated) then
|
||||||
|
begin
|
||||||
|
// TRichEdit clears it's text when it is first shown, at least on Delphi XE2
|
||||||
|
text := reDetails.Text;
|
||||||
|
reDetails.Visible := True;
|
||||||
|
reDetails.Text := text;
|
||||||
|
end else
|
||||||
AControl.Visible := True;
|
AControl.Visible := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user