Re: APP behaves differently in IDE vs EXE

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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


.



Relevant Pages

  • Re: How to debug a compiled exe
    ... I killed all DoEvents and replaced them with Sleep where necessary. ... My problem was that I was doing long doevent loops in which the app could do other things that it wanted to do. ... You can click on a cell in the grid, ... While it was still scrolling, ...
    (microsoft.public.vb.general.discussion)
  • Re: Php / Java grids .NET grids
    ... But if you had to choose PHP/Java vs .NET to develop said grid, ... But you should know IIRC php offloads its maths and various other ... My primary VFP app is basically a html string generator from ... is the data engine and parses data and writes strings at supersonic speeds. ...
    (comp.lang.php)
  • Re: Visual Basic for Autorun?
    ... Take as an example a grid I wrote for one project. ... If changes are required they can't be specific to one app. ... are not always available if the control is in the exe. ... everything is in the one language. ...
    (microsoft.public.vb.general.discussion)
  • Re: TStringGrid.DrawCell - Not Updating The Correct Cell
    ... Instead of scrolling the visible grid I scrolled the invisible grid ... By telling it to refresh all the cells you are generating quite a lot ... This message sets or clears the redraw flag. ...
    (comp.lang.pascal.delphi.misc)
  • Re: SplitScreen
    ... that uses PictureBox controls for the divider bars, ... eliminates a few controls. ... A question on the synchronized scrolling - it appears that a FlexGrid will ... I want to use a single scrollbar (on grid 3) without others showing ...
    (microsoft.public.vb.controls)