Czy da sie pod polecenia komponentu DBNavigator da się jeszcze coś "podpiąć" np. jakiś własny kodzik? ;)
0
0
DBNavigator na zdarzenie onClick w takiej postaci
procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn);
begin
end;
wiec jak widzisz to parametrem jest Button klasy TNavigateBtn, który moze przyjąć następujące wartości:
Button Value Action
First nbFirst Go to the first record
Prior nbPrior Go to the previous record
Next nbNext Go to the next record
Last nbLast Go to the last record
Insert nbInsert Insert a blank record
Delete nbDelete Delete the current record
Edit nbEdit Permit users to edit the current record
Post nbPost Post the current record
Cancel nbCancel Cancel the current edit
Refresh nbRefresh Refresh the data in the dataset
wiec żeby dokleić sój kodzik do jakiegoś przycisku wystarczy napisać coś takeigo
procedure TForm1.DBNavigator1Click(Sender: TObject; Button: TNavigateBtn);
begin
if Button=nbDelete then
//mój kodzik:)
end;
0
Dzięki [!!!]
A mozliwe jest zmienienie przycisków na komponencie DBNavigator na własne?
Pozdr. ;)
0
Z tego co mi wiadomo to nie - ale mogę sie mylić - zresztą możesz sobie stworzyć własnego DBNavigator'a:)