@@ -564,7 +564,7 @@ procedure TfrmDashboard.FTreeViewGetImageIndex(Sender: TBaseVirtualTree;
564
564
begin
565
565
DN := Sender.GetNodeData<TDashboardNode>(Node);
566
566
LReceiver := DN.Data.Receiver;
567
- if (DN.Level = 0 ) and (Kind in [ikNormal, ikSelected]) then
567
+ if (DN.Level = 0 ) and (Column = 0 ) and ( Kind in [ikNormal, ikSelected]) then
568
568
begin
569
569
if LReceiver = FZmqReceiver then
570
570
begin
@@ -602,7 +602,7 @@ procedure TfrmDashboard.FTreeViewGetText(Sender: TBaseVirtualTree;
602
602
function DateTimeToText (ADateTime: TDateTime): string;
603
603
begin
604
604
if Double(ADateTime).SpecialType = fsZero then
605
- Result := ' '
605
+ Result := ' '
606
606
else
607
607
Result := DateTimeToStr(ADateTime);
608
608
end ;
@@ -634,9 +634,19 @@ procedure TfrmDashboard.FTreeViewGetText(Sender: TBaseVirtualTree;
634
634
else if Column = COLUMN_SOURCEID then
635
635
CellText := LSubscriber.SourceId.ToString
636
636
else if Column = COLUMN_MESSAGECOUNT then
637
- CellText := LSubscriber.MessageCount.ToString
637
+ begin
638
+ if LSubscriber.MessageCount > 0 then
639
+ CellText := LSubscriber.MessageCount.ToString
640
+ else
641
+ CellText := ' ' ;
642
+ end
638
643
else if Column = COLUMN_BYTES_RECEIVED then
639
- CellText := FormatBytes(LSubscriber.BytesReceived)
644
+ begin
645
+ if LSubscriber.BytesReceived > 0 then
646
+ CellText := FormatBytes(LSubscriber.BytesReceived)
647
+ else
648
+ CellText := ' ' ;
649
+ end
640
650
else if Column = COLUMN_TIMESTAMP_FIRST then
641
651
CellText := DateTimeToText(LSubscriber.TimeStampFirst)
642
652
else if Column = COLUMN_TIMESTAMP_LAST then
@@ -1076,7 +1086,7 @@ procedure TfrmDashboard.InitializeTreeView;
1076
1086
begin
1077
1087
MaxWidth := 90 ;
1078
1088
MinWidth := 90 ;
1079
- Options := [coAllowClick, coEnabled, coParentBidiMode, coShowDropMark,
1089
+ Options := [coAllowClick, coEnabled, coParentBidiMode,
1080
1090
coVisible, coAllowFocus];
1081
1091
Position := COLUMN_MESSAGECOUNT;
1082
1092
Width := 90 ;
@@ -1087,7 +1097,7 @@ procedure TfrmDashboard.InitializeTreeView;
1087
1097
begin
1088
1098
MaxWidth := 80 ;
1089
1099
MinWidth := 80 ;
1090
- Options := [coAllowClick, coEnabled, coParentBidiMode, coShowDropMark,
1100
+ Options := [coAllowClick, coEnabled, coParentBidiMode,
1091
1101
coVisible, coAllowFocus];
1092
1102
Position := COLUMN_BYTES_RECEIVED;
1093
1103
Width := 80 ;
@@ -1098,8 +1108,8 @@ procedure TfrmDashboard.InitializeTreeView;
1098
1108
begin
1099
1109
MaxWidth := 120 ;
1100
1110
MinWidth := 120 ;
1101
- Options := [coAllowClick, coEnabled, coParentBidiMode, coShowDropMark ,
1102
- coVisible, coAllowFocus];
1111
+ Options := [coAllowClick, coEnabled, coParentBidiMode, coVisible ,
1112
+ coAllowFocus];
1103
1113
Position := COLUMN_TIMESTAMP_FIRST;
1104
1114
Width := 120 ;
1105
1115
Text := STimeStampFirst;
@@ -1108,14 +1118,14 @@ procedure TfrmDashboard.InitializeTreeView;
1108
1118
begin
1109
1119
MaxWidth := 120 ;
1110
1120
MinWidth := 120 ;
1111
- Options := [coAllowClick, coEnabled, coParentBidiMode, coShowDropMark,
1121
+ Options := [coAllowClick, coEnabled, coParentBidiMode,
1112
1122
coVisible, coAllowFocus];
1113
1123
Position := COLUMN_TIMESTAMP_LAST;
1114
1124
Width := 120 ;
1115
1125
Text := STimeStampLast;
1116
1126
end ;
1117
1127
Header.MainColumn := 0 ;
1118
- TreeOptions.AutoOptions := TreeOptions.AutoOptions + [toAutoSpanColumns];
1128
+ TreeOptions.AutoOptions := TreeOptions.AutoOptions + [toAutoSpanColumns];
1119
1129
TreeOptions.PaintOptions := TreeOptions.PaintOptions + [toShowTreeLines];
1120
1130
end ;
1121
1131
FTreeView.Header.AutoSizeIndex := 0 ;
0 commit comments