[DUG] Refreshing the first tabsheet of a TPageControl
Charlie
kerscher at bellsouth.net
Mon Feb 6 12:29:21 NZDT 2012
I'm having to re-write my modified orders module (afdoe.exe - from
Accounting for Delphi) as when I compile and run it the process
continues to show in the task manager. Also it simply blows up on the
windows 2003 server. I have made many modifications to this module over
the last 6 years and until a couple of weeks ago had no problems with
the module compiling and running. I'm using CodeGear 2007 on Windows 7
Pro laptop.
My new main form has a grid of all open orders (TQuery used for this).
There are three tabsheets (Main, Header, Detail). I've got it so that
when I double click on a row in the grid the data for that order (Header
and Detail data) show on the Header and Detail tabsheets.
But when I click on Main tabsheet, the grid is in the same state as when
I doubled clicked. The 'Main' tabsheet isn't getting refreshed.
I also have a incremental search control on the man form (on the 'Main'
tabsheet) which I use to search the customers table. Its OnExit event
runs a query that chooses open orders for the chosen customer which are
displayed in another grid. The user then can click a row and again the
data appears on the Header and Detail tabsheets. Again when I click on
the Main tabsheet the controls aren't refreshed.
I've tried for 8 hours to get the main form to refresh but with no
success. For example I'm not able to do an incremental search at all;
that is, when I enter characters in the incremental control no search
occurs. Evidenced by no change in the customer id control and the
customer name control. Of course I can close the app and restart but
while that's the result I want; that's not what I need to happen.
Any suggestions?
Thanks,
Charlie
More information about the Delphi
mailing list