Autor Beitrag
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 11.08.02 13:47 
Hi,

vielleicht ist es nur ganz was banales. Wie kann ich einzelne Buttons des DBNavigators disablen ?
ao
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: So 11.08.02 14:12 
Hallo bis11,

probier's mal mit der Eigenschaft VisibleButtons.

Gruß
Andreas
bis11 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: So 11.08.02 14:19 
Wie mache ich das zur Laufzeit ?
ao
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 145

Win XP Prof.
D7 Ent.
BeitragVerfasst: So 11.08.02 15:25 
So z.B. werden nur die Buttons für First und Last angezeigt:
ausblenden Delphi-Quelltext
1:
DBNavigator1.VisibleButtons := [nbFirst, nbLast];					

Folgende Typen können eingesetzt werden:
ausblenden Delphi-Quelltext
1:
type TNavigateBtn = (nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbEdit, nbPost, nbCancel, nbRefresh);					


Gruß
Andreas

Moderiert von user profile iconKlabautermann: Code durch Delphi-Tags ersetzt.
Wizard
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Mi 01.12.04 08:36 
Ich hab ne kleine Frage,
bei mir gibt er eine Fehlermeldung in der Zeile aus :
Undefinierter Bezeichner "nbfirst"
Undefinierter Bezeichner "nbfirstnbnext" ...
Jedes Zweite wird nicht erkannt, wenn ich das Erste lösche, erkennt er die anderen Buttons nicht mehr.

ausblenden Quelltext
1:
Zeile : formproj.DBNavigatorproj.VisibleButtons := [nbFirst,nbPrior,nbNext,nbLast,nbInsert,nbPost,nbCancel]					



Ok hab den Fehler, musste noch "DBCtrls" in Uses einfügen.