Coding Approach Question...

  • Thread starter Thread starter Beringer
  • Start date Start date
B

Beringer

Hello,

I figure this is a very basic issue but haven't figured out how to do it.

I am trying to create a grid-like control to be the basis of a schedule
(show appointments).
What I want is a similar to a spreadsheet with captions (showing date) at
the top of each column and a time line at the left side to show the time of
day. And on the "grid" will be displayed a collection of say, appointments.
I'm having a difficult time trying to keep the column captions visible while
one scrolls through the grid.

I have tried a couple of approaches:
1. Draw on two panels, one contains the grid and the other is where I draw
the caption items. This works well until the horizontal scroll bar shows up
and the two panels get out of "sync" because the captions do not move
horizontally with the grid.
2. Draw the captions above the grid on the same panel, but then they scroll
off when scrolling vertically.

I haven't tried doing this without drawing on panels because I can't
conceptually visualize how to do it.

Thank you in advance,
Eric
 
Did you try subclassing ListView and owner drawing? List view has a header
that would solve your problem.

-vJ
 
Back
Top