<!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 - 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> </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> </DIV>
<DIV class=Section1>
<P class=MsoAutoSig align=left>John<SPAN class=139405520-28022008><FONT
face=Arial color=#0000ff size=2> </FONT></SPAN></P>
<P class=MsoAutoSig align=left><SPAN class=139405520-28022008> </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> </DIV>
<DIV>Well my problems goes likes this</DIV>
<DIV> </DIV>
<DIV>Envoirment :delphi 5: </DIV>
<DIV>Compoent : inhertied from string grid with a check box feature in
it.</DIV>
<DIV> </DIV>
<DIV>Thing is in this string gird i mean my custom made grid. i have set some
option where 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 bars moevs up and
down, For a movement i thought well sicne the showmessage takes the focus
thats 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 even if the focus is on other components Just move
the mouse the grid rows will move up and down.</DIV>
<DIV> </DIV>
<DIV>Is there anyways i can fidn the position of scroll bar in normal string
grid.</DIV>
<DIV> </DIV>
<DIV>something say strigngrid.scrollbar.postion soemthign like. But i
got confused here,</DIV>
<DIV> </DIV>
<DIV>I know its seems like a small problem but i ditn able to make out where
this is going wrong. </DIV>
<DIV> </DIV>
<DIV>I apreicate ur advice in this</DIV>
<DIV> </DIV>
<DIV>Regards</DIV>
<DIV>Vikas Vasudev</DIV>
<DIV> </DIV>
<DIV>Solution consultant</DIV>
<DIV> </DIV>
<DIV>NCR corporation </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR clear=all><BR>-- <BR> vikas
</DIV></BLOCKQUOTE></BODY></HTML>