Need help on query progress

Hi!
How can I get the progress from the running query?
The RX component RXDBProgress didn't help. It gets the progress only
from a few of types of queries.
I suppose I have to register my own callback in BDE.
But how?
        Ilya Sirota.