Board index » delphi » Which Button Was Clicked On A Navigator

Which Button Was Clicked On A Navigator

Check the Value of "Button" in the OnClick Event.

Roy

Quote
"Greg Smith" <g...@umn.edu> wrote in message

news:3CFF6A57.FEFAC418@umn.edu...
Quote
> When you click on a navigator control is there a way to tell the new
> state of the buttons, or the state it has put the dataset into?

> Any help is greatly appreciated.

> --
> Greg Smith
> UNIVERSITY OF MINNESOTA
> NEI Vision Core Grant
> 2-165D Jackson Hall
> 321 Church St. S.E.
> Minneapolis, MN  55455
> Phone: (612)626-3645/Fax: (612)626-5009
> E-mail: g...@tc.umn.edu
> "OLD PROGRAMMERS NEVER DIE THEY JUST GET COMMENTED OUT!"

 

Re:Which Button Was Clicked On A Navigator


When you click on a navigator control is there a way to tell the new
state of the buttons, or the state it has put the dataset into?

Any help is greatly appreciated.

--
Greg Smith
UNIVERSITY OF MINNESOTA
NEI Vision Core Grant
2-165D Jackson Hall
321 Church St. S.E.
Minneapolis, MN  55455
Phone: (612)626-3645/Fax: (612)626-5009
E-mail: g...@tc.umn.edu
"OLD PROGRAMMERS NEVER DIE THEY JUST GET COMMENTED OUT!"

Re:Which Button Was Clicked On A Navigator


You can examine the button parameter of the navigator click event, but I
think you are actually looking for the OnStateChange event of a TDataSource
component. Test for your dataset.state inside the event.

--
Michael Collier
--
Courses http://delphi.about.com/library/weekly/aa010101a.htm
Better ADO Components http://web.orbitel.bg/vassil/
Experiment With ADO www.adoanywhere.com
Fast Data Access www.oledbdirect.com
--

Quote
"Greg Smith" <g...@umn.edu> wrote in message

news:3CFF6A57.FEFAC418@umn.edu...
Quote
> When you click on a navigator control is there a way to tell the new
> state of the buttons, or the state it has put the dataset into?

> Any help is greatly appreciated.

> --
> Greg Smith
> UNIVERSITY OF MINNESOTA
> NEI Vision Core Grant
> 2-165D Jackson Hall
> 321 Church St. S.E.
> Minneapolis, MN  55455
> Phone: (612)626-3645/Fax: (612)626-5009
> E-mail: g...@tc.umn.edu
> "OLD PROGRAMMERS NEVER DIE THEY JUST GET COMMENTED OUT!"

Other Threads