Martincho <mbarale1@...> escribió:
en el evento OnClick del DBNavigator hay un parametro q se llama Button.Para ver cual es el que se presionó podes hacer, por ej:if button=nbnext thenAsí bloqueas el boton next en caso de que haya apretado eseif button=nbnext then
(DBNavigator1.Controls[2] as TNavButton).Enabled:=false ;Espero q te sirva.saludosEn la ayuda de Delphi 5 tenes:TNavigateBtn defines values identifying different possible buttons on a TDBNavigator object.UnitDialogstype TNavigateBtn = (nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbEdit, nbPost, nbCancel, nbRefresh);DescriptionEach TNavigateBtn value identifies a different button that can appear on a TDBNavigator object. The following table lists all the button types, their corresponding TNavigateBtn values, and the action associated with each button:Button Value ActionFirst 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----- Original Message -----From: leonardo stortoniSent: Wednesday, May 04, 2005 9:30 AMSubject: [Delphi] Pregunta TDBNavigatorQue tal a todos :Nesecito hacer lo siguiente , estoy usando un Navigator para hcer unas altas y bajas en una pequeña aplicacion lo que yo nesecitaria es que cuando alguien esta en modo edicion no me permita por ejemplo apretar los botones del navigator que son para moverce en la grilla , en si lo que nesecito es poder de acuerdo a ciertas situaciones poder desabilitar un x boton del TBNavigator por ejemplo poder desabilitar el de "+" y depues poder habilitarlo etc , no encuentro la forma de cuando alguien hace click poder identifiar que boton se preciono y de acuerdo a eso hacer sierta cosa.Bueno gradecere su ayuda.Salludos.__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar
------------------------------
DesarrolloDelphi:
Desarrollo de Software en Borland Delphi
------------------------------
Direcciones de la lista:
Publicar un mensaje: DesarrolloDelphi@...
Suscribirse........: DesarrolloDelphi-Subscribe@...
Desuscribirse......: DesarrolloDelphi-Unsubscribe@...
Administrador......: DesarrolloDelphi-Owner@...
Página de la lista.: http://www.gruposyahoo.com.ar/group/DesarrolloDelphi
------------------------------
------------------------------
DesarrolloDelphi:
Desarrollo de Software en Borland Delphi
------------------------------
Direcciones de la lista:
Publicar un mensaje: DesarrolloDelphi@...
Suscribirse........: DesarrolloDelphi-Subscribe@...
Desuscribirse......: DesarrolloDelphi-Unsubscribe@...
Administrador......: DesarrolloDelphi-Owner@...
Página de la lista.: http://www.gruposyahoo.com.ar/group/DesarrolloDelphi
------------------------------
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
¡Abrí tu cuenta ya! - http://correo.yahoo.com.ar