I have experienced problems with Enable / Disable controls. I have several
large database projects, and have been quite happe converting them too D5,
getting my hands on the new features. Alas, I get one big problem, my data
suddenly doesn't refresh anymore !
If I remove my calls to enable/disable contrls, It starts to work again, but
then with way too much flickering. Also this only seems to be a problem on
queries that have TFields created at design time.
Does anyone know if Borland changed someting with Disable/Enable controls in
D5 ?
It seems to me that the dataaware controls don't get told to refresh
themselves after a call to enable controls. (I have checked the reference
count :)
Are there any new obvious features I have overlooked, a property to set ?
Any help is greatly appreciated !
Cheers :o)
--------------------------
Bjorn Isaksen
With all other standard controls it works as in previous versions.
Using any 3rd party controls?
Opening datasets and leaving them open at design time or opening them at
runtime after form is created?
--
----------------------
Regards
Robert Cerny
Remove both qwe when replying
email: robert.q...@neosys.xrs.qwe.si
No questions via email, unless explicitly invited.
Bjørn Isaksen wrote in message <854b40$r7...@bornews.borland.com>...
No 3rd party controls, and I open the datasets in code runtime.
"Robert Cerny" <robert.q...@neosys.xrs.qwe.si> wrote in message
news:85e81u$37...@bornews.borland.com...
If I have problems you describe, I make a grep search over the specific
units to see differences of the two Delphi versions.
In your case, I would compare the units db.pas, dbtables.pas and dbctrls.pas.
Especially, I would examine missing TDataSet.DataEvent calls in D5.
It is surely not a bad idea to debug, what happens when you call EnableControls
the last time.
Ciao, Marco