close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Ignore:
Timestamp:
Jan 4, 2017, 10:11:03 PM (7 years ago)
Author:
chronos
Message:
  • Fixed: Do not allow to move from single cell more units when available.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMove.pas

    r88 r124  
    9090procedure TFormMove.FormShow(Sender: TObject);
    9191begin
    92   SpinEditOnce.SetFocus;
     92  if SpinEditOnce.MaxValue < SpinEditOnce.Value then begin
     93    SpinEditOnce.Enabled := False;
     94    SpinEditOnce.Value := 0;
     95    TrackBarOnce.Enabled := False;
     96    TrackBarOnce.Max := 0;
     97    SpinEditRepeat.SetFocus;
     98  end else begin
     99    SpinEditOnce.Enabled := True;
     100    TrackBarOnce.Enabled := True;
     101    SpinEditOnce.SetFocus;
     102  end;
    93103  UpdateView;
    94104end;
Note: See TracChangeset for help on using the changeset viewer.