Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problems with Enable / Disablecontrols

94 views
Skip to first unread message

Bjørn Isaksen

unread,
Jan 7, 2000, 3:00:00 AM1/7/00
to
Greetings :)

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


Robert Cerny

unread,
Jan 11, 2000, 3:00:00 AM1/11/00
to
I experienced this problem only with TDBCtrlGrid.
But I found that TDBCtrlGrid does not flicker on Dataset.Close;
Dataset.Open;
One thing that may help if you can't drop disable/enable controls is:
Dataset.Next; Dataset.Prior;

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>...

Bjørn Isaksen

unread,
Jan 11, 2000, 3:00:00 AM1/11/00
to
Thanks for your time.

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...

Marco Klemm

unread,
Jan 11, 2000, 3:00:00 AM1/11/00
to
"Bjørn Isaksen" wrote:
>
> 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 !

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

0 new messages