Dear all,
I have a question regarding DisableControls and EnableControls procedures of TDataSet.
Is it correct that if I call 2 times disablecontrols I have to call 2 times enablecontrols in order to enable again the controls associated to the dataset?
Here an example:
I put a DBGrid associated to a dataset by datasource. I put on the form 2 buttons, one to call TDataset.EnableControls and another one that call TDataset.DisableControls. If I click the disable button 2 times I have to click 2 times also the enable button in order to enable again the dbgrid. Is it correct? How can I check if the controls associated to a TDataset are enabled or not?
Regards,
Andrea
Mailing lists / lazarus / 2009-09
enablecontrols and disablecontrols
3 messages · 2 people ·
- AAndrea Mauri 2
- JJoost van der Sluis 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Andrea Mauri wrote 6 lines
Dear all,
I have a question regarding DisableControls and EnableControls
procedures of TDataSet.
Is it correct that if I call 2 times disablecontrols I have to call 2
times enablecontrols in order to enable again the controls associated to
the dataset?
Are you using Lazarus? ctrl-click on TDataset.EnableControls. Then use ctrl-shift-down and you'll see... ;)
Offcourse, documentation is also usefull. But there is this easy alternative. (It doesn't work in more difficult cases, but in this case it does)
Joost
thanks, i used ctrl-click but I didn't know about ctrl-shift-down. a.
Show quoted text 17 lines
Are you using Lazarus? ctrl-click on TDataset.EnableControls. Then use
ctrl-shift-down and you'll see... ;)
Offcourse, documentation is also usefull. But there is this easy
alternative. (It doesn't work in more difficult cases, but in this case
it does)
Joost
--
_______________________________________________
Lazarus mailing list
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
