OSDN Git Service

Show the order of the selected bottle
authornaru <bottle@mikage.to>
Mon, 26 Jan 2004 16:18:50 +0000 (16:18 +0000)
committernaru <bottle@mikage.to>
Mon, 26 Jan 2004 16:18:50 +0000 (16:18 +0000)
bottleclient/LogForm.pas

index a504a93..75cb2f9 100755 (executable)
@@ -321,11 +321,12 @@ begin
   Selected := false;
   IsNormalBottle := false;
   if SelectedBottleLog <> nil then begin
-    StatusBar.Panels[0].Text := IntToStr(SelectedBottleLog.Count) + '\8c\8f';
     if Change = ctState then begin
       Script := '';
       if lvwLog.Selected <> nil then begin
         Selected := true;
+        StatusBar.Panels[0].Text := Format('%d/%d\8c\8f', [lvwLog.Selected.Index+1,
+          SelectedBottleLog.Count]);
         Log := SelectedBottleLog.Bottles[lvwLog.Selected.Index];
         if (Log.LogType = ltBottle) and not frmSender.Connecting then begin
           IsNormalBottle := true;
@@ -342,6 +343,7 @@ begin
           UpdateScript(''); // \83\8d\83O\83v\83\8c\83r\83\85\81[\95\94\82ð\83N\83\8a\83A
         end;
       end else begin
+        StatusBar.Panels[0].Text := IntToStr(SelectedBottleLog.Count) + '\8c\8f';
         StatusBar.Panels[1].Text := '';
         UpdateScript(Script); // \83\8d\83O\83v\83\8c\83r\83\85\81[\95\94\83N\83\8a\83A
       end;