Re: APP behaves differently in IDE vs EXE
- From: "Terry Diederich" <terry@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 25 May 2005 09:40:57 -0500
In case anyone is interested I found a workaround to my problem. I don't
know what is causing the problem exactly but I can get the app to work
consistently now at least.
The app is using the dbgrid32 control as an unbound grid. According to the
help file, setting the bookmark property to itself will force the current
row to be updated through the UnboundWriteData event. I did this in the
grid's AfterColEdit event and the display problem went away. I am not sure
what changed with XP/SP2 that now requires this but it took care of the
problem. The display worked fine in W98 and XP/SP1 without this line.
However, there seems to be a side-effect of this change that I now need to
deal with. Since I've added the line to set the bookmark property to
itself, the grid is acting slightly differently. Whenever I edit a column
and then move to a lower row, the grid scrolls everything so the row I just
edited is now the top visible row in the grid. This now happens only on
XP/SP2. I have the same EXE running on a machine with XP/SP1 and the grid
does not automatically scroll the rows as you edit them. This is only
happening with XP/SP2 and has only started to happen since I added the line
to set the bookmark to itself. If I remove the line to set the bookmark, the
scrolling issue goes away.
I'm just starting to look into this. If anyone has any suggestions for the
scrolling issue, I'd appreciate hearing them.
Thanks
Terry
.
- References:
- APP behaves differently in IDE vs EXE
- From: Terry Diederich
- APP behaves differently in IDE vs EXE
- Prev by Date: Re: WMI Select statement
- Next by Date: Re: Create Virtual Serial Port
- Previous by thread: Re: APP behaves differently in IDE vs EXE
- Next by thread: Hidden Property
- Index(es):
Relevant Pages
|