Changeset 31 for trunk/Start.pas


Ignore:
Timestamp:
Jan 8, 2017, 10:59:32 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Switching tabs in start screen. Autoselection of item in list was not working correctly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Start.pas

    r30 r31  
    422422  r0 := CreateRectRgn(x0, y0, x1, y1);
    423423  for i := 0 to ControlCount - 1 do
    424     if not(Controls[i] is TArea) and Controls[i].Visible then
     424    if not (Controls[i] is TArea) and Controls[i].Visible then
    425425    begin
    426426      with Controls[i].BoundsRect do
     
    10921092            MiniLine[xm, 2] := cm and $FF;
    10931093          end;
    1094         Mini.EndUpdate;
    10951094      end;
     1095      Mini.EndUpdate;
    10961096    end;
    10971097  end;
     
    15341534  end;
    15351535  if Tab <> 2 then
    1536     if ListIndex[Tab] >= 0 then
    1537       List.ItemIndex := ListIndex[Tab]
    1538     else
    1539       List.ItemIndex := 0;
     1536    if List.Count > 0 then begin
     1537      if (List.Count > ListIndex[Tab]) then
     1538        List.ItemIndex := ListIndex[Tab]
     1539        else List.ItemIndex := 0;
     1540    end else List.ItemIndex := -1;
    15401541  case Tab of
    15411542    0:
Note: See TracChangeset for help on using the changeset viewer.