We have a program that displays the court docket for each courtroom on a monitor mounted outside the courtroom (think of an airline arrival/departure screen).
Anyway, this display scrolls information like this:
9:30 Criminal Trial
CR 123404 Joe Blow ..... other case information
CR 142404 Jane Doe ..... other case information
10:00 Bond Arraignment
DW 242103 John Smith ..... other case information
CR 525202 Mary Jones ..... other case information
So, if this is the beginning of the display, 9:30 Criminal Trial moves off the display and all you have is:
CR 123404 Joe Blow ..... other case information
CR 142404 Jane Doe ..... other case information
10:00 Bond Arraignment
DW 242103 John Smith ..... other case information
CR 525202 Mary Jones ..... other case information
What I'm looking for is a way to keep the title bar in row 1 until another title bar comes along and then replace the Row 1 with the new title.
So in this case
9:30 Criminal Trial
will stay in Row 1 of the string grid until 10:00 Bond Arraignment gets to the top. Then
10:00 Bond Arraignment
replaces the Criminal Trial title.
Anyone have any ideas on how to accomplish this?
Here's the code we are currently using to scroll the display:
Leslie
Anyway, this display scrolls information like this:
9:30 Criminal Trial
CR 123404 Joe Blow ..... other case information
CR 142404 Jane Doe ..... other case information
10:00 Bond Arraignment
DW 242103 John Smith ..... other case information
CR 525202 Mary Jones ..... other case information
So, if this is the beginning of the display, 9:30 Criminal Trial moves off the display and all you have is:
CR 123404 Joe Blow ..... other case information
CR 142404 Jane Doe ..... other case information
10:00 Bond Arraignment
DW 242103 John Smith ..... other case information
CR 525202 Mary Jones ..... other case information
What I'm looking for is a way to keep the title bar in row 1 until another title bar comes along and then replace the Row 1 with the new title.
So in this case
9:30 Criminal Trial
will stay in Row 1 of the string grid until 10:00 Bond Arraignment gets to the top. Then
10:00 Bond Arraignment
replaces the Criminal Trial title.
Anyone have any ideas on how to accomplish this?
Here's the code we are currently using to scroll the display:
Code:
procedure TForm_Main.Timer_ScrollTimer(Sender: TObject);
var
J: integer;
begin
with StrGrid_Docket do
begin
//set the row down at the bottom of the grid so display moves sooner
if Row < 15 Then Row := 15;
if Row = RowCount - 3
then
begin
Timer_Scroll.Enabled:= False;
for J:= 0 to 30 do // leave the bottom displayed for ~ 3 sec.
begin
Sleep(30); // (50 * 100 mS = 3 sec)
Application.ProcessMessages;
end;
Row:= 1; // then reset data to top of display.
Update;
Row:= 15;
Timer_Scroll.Enabled:= True;
end
else
if Row < RowCount - 1 then
Row:= Row + 1;
end;
end;
Leslie