I am using Paul's grid control in an app and I don't know how to get the vertical scroll bar to work. I got it to appear but that is all.
grid.Create( 10, TABHT, WIDTH-25, HEIGHT-TABHT-LSpc/2, AWS_VISIBLE|AWS_VSCROLL, 99, "",this);
for (i=0; i < 6; i++)
{
grid.SetColumnWidth(i,82);
}
grid.SetColumnWidth(0,50);
grid.SetHeaderFont( "Arial", 8, 550 );
grid.SetHeaderText(0,1,"Tot.Vert.Stress");
grid.SetHeaderText(0,2,"PoreWtrPress");
grid.SetHeaderText(0,3,"Eff.Vert.Stress");
grid.SetHeaderText(0,4,"Eff.Horz.Stress");
grid.SetHeaderText(0,5,"Tot.Horz.Stress");
grid.SetDefaultFont( "Arial", 8, 550 );
for (i=0; i < 3*NumSoilLayers; i++)
{
grid.SetRowHeight(i+1, 15);
grid.SetHeaderText(1,i+1, NumToStr(SoilStress.GetProp(i,DPTH))+" ft");
grid.SetCellText(1,i+1, NumToStr(SoilStress.GetProp(i,TVS),1));
grid.SetCellText(2,i+1, NumToStr(SoilStress.GetProp(i,PWP),1));
grid.SetCellText(3,i+1, NumToStr(SoilStress.GetProp(i,EVS),1));
grid.SetCellText(4,i+1, NumToStr(SoilStress.GetProp(i,EHS),1));
grid.SetCellText(5,i+1, NumToStr(SoilStress.GetProp(i,THS),1));
}
The grid doesn't have scrolling features yet. Turning on the scrollbar does nothing for you, you have to respond to scrollbar messages and offset the data that is displayed by the scroll amount
thanks Paul for the response, I know how how sick you are.
As a proud owner of the Programmers Toolkit, you already have an example of scrolling :D