Board index » delphi » DBNavigator button click

DBNavigator button click

Is it possible to detect which button on a DBNavigator was clicked in the
navigator's OnClick event?  Specifically, I would like to catch the
nbRefresh and nbPost clicks, but have had no luck with:
        if DBNavigator1.TNavigateBtn = 'nbRefresh' then...

If I need to set up KeyPreview, what value would I be looking for?

 

Re:DBNavigator button click


Try this code

If button = nbRefresh then ShowMessage('Test');

R/S

Will Wilson
CWILSON...@AOL.COM

Other Threads