[DUG] string grid help

John Bird johnkbird at paradise.net.nz
Fri Feb 29 10:04:17 NZDT 2008


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.
 
The other option is to turn the scroll bars off (scrollbars property).
 

John 

 -----Original Message-----
From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Vikas...
Sent: Thursday, 28 February 2008 8:47 p.m.
To: NZ Borland Developers Group - Delphi List; NZ Borland Developers Group -
Delphi List
Subject: [DUG] string grid help



Hi,
I dont know if its right to ask this question here,
 
Well my problems goes likes this
 
Envoirment :delphi 5: 
Compoent : inhertied from string grid with a check box feature in it.
 
Thing is in this string gird i mean my custom made grid. i have set some
option where user cannot check the gird .
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.
 
Is there anyways i can fidn the position of scroll bar in normal string
grid.
 
something say  strigngrid.scrollbar.postion soemthign like. But i got
confused here,
 
I know its seems like a small problem but i ditn able to make out where this
is going wrong. 
 
I apreicate ur advice in this
 
Regards
Vikas Vasudev
 
Solution consultant
 
NCR corporation 
 
 
 
 
 


-- 
  vikas 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080229/3c395311/attachment.html


More information about the Delphi mailing list