April 25, 2024, 10:45:16 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


using the vertical scroll bar in Paul's grid control

Started by John S, March 11, 2007, 02:10:15 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John S

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));
}
John Siino, Advanced Engineering Services and Software

Ionic Wind Support Team

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
Ionic Wind Support Team

John S

thanks Paul for the response, I know how how sick you are. 
John Siino, Advanced Engineering Services and Software

Bruce Peaslee

As a proud owner of the Programmers Toolkit, you already have an example of scrolling  :D
Bruce Peaslee
"Born too loose."
iTired (There's a nap for that.)
Well, I headed for Las Vegas
Only made it out to Needles