I have been tasked to add a function to our application that Graphically displays
the service history of a specific part being fitted to a specific machine.
This graphic display would be in the form of a horizontal time line that would look
something like a ruler.
Each time the part was fitted some type of character (Like a small vertical line or arrow) would
appear on the time line to represent a date within the chosen range
As the user's mouse moves over one of these check points, the date is either shown in a label
or tooltip
Since the date range may vary and span over a number of years the time line cannot be a specific
length.
Since there is also a limitation of how wide the control can be (depending upon screen size etc)
it would probably need to be scrollable.
I have considered using a scrollable panel that contains a label. The width of the label will be set
to the number of days in the range, the text of the label will be a long string of "-" (Minus Sign)
where a part has been fitted this will be represented by a "+" (Plus Sign) eg:
---------------------+----------+-----------+
The problem with this is that I don't know how to translate a the cursor position on the line into a date.
I have just had another thought to use a list view with a single line where hundreds of very narrow columns are created
each column representing a day within the range, if the part was fitted then the column would be set to
a different background color.
To the best of my knowledge there is no control for doing something like this,Does anyone have any ideas on how this
could be done?
the service history of a specific part being fitted to a specific machine.
This graphic display would be in the form of a horizontal time line that would look
something like a ruler.
Each time the part was fitted some type of character (Like a small vertical line or arrow) would
appear on the time line to represent a date within the chosen range
As the user's mouse moves over one of these check points, the date is either shown in a label
or tooltip
Since the date range may vary and span over a number of years the time line cannot be a specific
length.
Since there is also a limitation of how wide the control can be (depending upon screen size etc)
it would probably need to be scrollable.
I have considered using a scrollable panel that contains a label. The width of the label will be set
to the number of days in the range, the text of the label will be a long string of "-" (Minus Sign)
where a part has been fitted this will be represented by a "+" (Plus Sign) eg:
---------------------+----------+-----------+
The problem with this is that I don't know how to translate a the cursor position on the line into a date.
I have just had another thought to use a list view with a single line where hundreds of very narrow columns are created
each column representing a day within the range, if the part was fitted then the column would be set to
a different background color.
To the best of my knowledge there is no control for doing something like this,Does anyone have any ideas on how this
could be done?