Changeset 1679 for cprs/trunk/CPRS-Chart/Orders/fOtherSchedule.pas
- Timestamp:
- May 7, 2015, 12:34:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/trunk/CPRS-Chart/Orders/fOtherSchedule.pas
r829 r1679 66 66 procedure btnSchRemoveClick(Sender: TObject); 67 67 procedure FormDestroy(Sender: TObject); 68 procedure NSScboScheduleExit(Sender: TObject); 69 procedure NSScboScheduleKeyUp(Sender: TObject; var Key: Word; 70 Shift: TShiftState); 68 71 private 69 72 FDaySchedule: array [1..7] of string; … … 683 686 end; 684 687 688 procedure TfrmOtherSchedule.NSScboScheduleExit(Sender: TObject); 689 begin 690 inherited; 691 if Pos(CRLF, NSScboSchedule.Text)> 0 then 692 begin 693 NSScboSchedule.Text := ''; 694 NSScboSchedule.ItemIndex := -1; 695 Application.MessageBox('Schedule field cannot contain a control character. Please select a valid unique schedule from the list.' +CRLF + 696 'Or remove the schedule text from the schedule list and select specific times from the administration times list.', 697 'Incorrect Schedule.'); 698 NSScboSchedule.SetFocus; 699 end; 700 if (NSScboSchedule.Text <> '') and (NSScboSchedule.ItemIndex = -1) then 701 begin 702 Application.MessageBox('Please select a valid unique schedule from the list.' +CRLF + 703 'Or remove the schedule text from the schedule list and select specific times from the administration times list.', 704 'Incorrect Schedule.'); 705 NSSCboSchedule.Text := ''; 706 NSScboSchedule.SetFocus; 707 end; 708 709 end; 710 711 procedure TfrmOtherSchedule.NSScboScheduleKeyUp(Sender: TObject; var Key: Word; 712 Shift: TShiftState); 713 begin 714 inherited; 715 if (Key = VK_BACK) and (NSScboSchedule.Text = '') then NSScboSchedule.itemindex:= -1; 716 end; 717 685 718 procedure TfrmOtherSchedule.lstMinuteKeyDown(Sender: TObject; 686 719 var Key: Word; Shift: TShiftState);
Note:
See TracChangeset
for help on using the changeset viewer.