<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.6000.16608" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=139405520-28022008>The 
(vertical) scroll bar position is determined by the stringgrid.row 
property,which is the current row&nbsp;- as long as that is constant then the 
scroll bars should not move, so check if something funny is going on with that, 
eg in the drawcell event if you are using it.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=139405520-28022008><FONT face=Arial color=#0000ff size=2>The 
other option is to turn the scroll bars off (scrollbars 
property).</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT>&nbsp;</DIV>
<DIV class=Section1>
<P class=MsoAutoSig align=left>John<SPAN class=139405520-28022008><FONT 
face=Arial color=#0000ff size=2>&nbsp;</FONT></SPAN></P>
<P class=MsoAutoSig align=left><SPAN class=139405520-28022008>&nbsp;</SPAN><FONT 
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
delphi-bounces@listserver.123.net.nz 
[mailto:delphi-bounces@listserver.123.net.nz] <B>On Behalf Of 
</B>Vikas...<BR><B>Sent:</B> Thursday, 28 February 2008 8:47 p.m.<BR><B>To:</B> 
NZ Borland Developers Group - Delphi List; NZ Borland Developers Group - Delphi 
List<BR><B>Subject:</B> [DUG] string grid help<BR><BR></P></FONT></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV>Hi,</DIV>
  <DIV>I dont know if its right to ask this question here,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Well my problems goes likes this</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Envoirment :delphi 5: </DIV>
  <DIV>Compoent : inhertied from string grid with a check box feature in 
  it.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Thing is in this string gird i mean my custom made grid. i have set some 
  option where&nbsp;user cannot check the gird .</DIV>
  <DIV>he/she will be prompted with a show message option but the problem is 
  when the showmessage pops up the grid loses it focus and on mouse movement the 
  grid rows and colums moves up and dowm i eman scroll&nbsp;bars moevs up and 
  down, For a movement i thought well sicne the showmessage takes the focus 
  thats&nbsp;why it happens. But the weired thing happend even after clicking OK 
  on show message the gird keeps on moving up and down no matter where i click 
  on form .I mean&nbsp;even if the focus is on other components&nbsp;Just move 
  the mouse the grid rows will move up and down.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Is there anyways i can fidn the position of scroll bar in normal string 
  grid.</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>something say&nbsp; strigngrid.scrollbar.postion soemthign like. But i 
  got confused here,</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I know its seems like a small problem but i ditn able to make out where 
  this is going wrong. </DIV>
  <DIV>&nbsp;</DIV>
  <DIV>I apreicate ur advice in this</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Regards</DIV>
  <DIV>Vikas Vasudev</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>Solution consultant</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>NCR corporation&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV>&nbsp;</DIV>
  <DIV><BR clear=all><BR>-- <BR>&nbsp;&nbsp;vikas 
</DIV></BLOCKQUOTE></BODY></HTML>