I need this grid to be developed in visual basic 6, and could be a user control or activex. I need the source code too.
The grid will be use to visualize available resources in a week.
A column represents a day in a week and the rows represent the time of the day.
A column can be splited in subcolumns, each subcolumn represent a resource, like a teacher or a classroom.
The day will be divided in little rows , each row represents a minimum delta time, like 5 minutes. This rows will not have horizontal gridlines.
A cell is the result of a row and a subcolumn.
Each column has a caption.
At left side has to be shown the time grid.
Has to support alfa effect to draw rectangles on top of the background.
Has to be very fast, probably need to use gdi library to handle painting and a saferarray structure to handle array data. Maybe 256 colour dib sections will be faster ([url removed, login to view] ) . Other option is use the open source s-grid control here [url removed, login to view]
The first version will not have scroll bars, but probably will be needed in next versions related with a minimum row height property and minimum column width.
Next version will also need a drawarea method and a way to drag/drop the rectangles.
I don´t know exactly how to define the color with the alfa property.
attached is a file with properties an events that don´t fit here.
please, se file milestones attached
one important property is missing from the square object :
caption : text to be shown inside the rectangle, has to accept escape characters like vbcrlf
attached are two new files, grid_squares shows how the grid could be, I´m based on codejock calendar, the main diference in this first version is the background that need to be painted according the subcolumns color background stored in the array. I simulated the background using an excel file and attached the screen captured in the file grid_background.