bug dbgrid?
29/05/2008
0
e um botao com o caption &Alterar === alt + a ... ativa o botao
mas se o foto tiver no dbgrid e precionar apenas a ele executao o botao pq? sem tem segurado alt?
Guibas
Posts
29/05/2008
Paulo
29/05/2008
Guibas
ONDE FICA O ATALHO ALT + T
SÓ QUE SE O FOCO ESTÁ NO DBGRID E PRECIONO A TECLA T (SEM APERTAR A TECLA ALT) ELE CHAMA O BOTAO... ONDE DEVERIA SER PRECISO O ALT + T
TEM COMO RESOLVER ISSO PRA QDO O FOCO ESTIVER NO DBGRID SÓ CHAMAR O BOTAO COM ALT + T E NÃO APENAS T COMO ACONTECE EM QUALQUER OUTRO OBJETO DO FORM?
29/05/2008
Steve_narancic
tenho a rotina pra tratar isso vou ver e posto aqui pra voces
29/05/2008
Paulo
29/05/2008
Steve_narancic
Voce alterou a propriedade options da grid, setando dgeditng pra false????
29/05/2008
Steve_narancic
30/05/2008
Steve_narancic
//Desconsiderar os atalhos dos botões [&] quando estiver em um componente não digitavel if (Screen.ActiveControl is TRadioButton) or (Screen.ActiveControl is TCustomCheckBox) or ((Screen.ActiveControl is TDBGrid) and (not(dgEditing in TDBGrid(Screen.ActiveControl).Options))) then begin if not ((Msg.CharCode = VK_Space) or (Msg.CharCode = VK_Return) or (Msg.CharCode = VK_Tab ) or (Msg.CharCode = VK_F1) or (Msg.CharCode = VK_F2) or (Msg.CharCode = VK_F3) or (Msg.CharCode = VK_F4) or (Msg.CharCode = VK_F5) or (Msg.CharCode = VK_F6) or (Msg.CharCode = VK_F7) or (Msg.CharCode = VK_F8) or (Msg.CharCode = VK_F9) or (Msg.CharCode = VK_F10) or (Msg.CharCode = VK_F11) or (Msg.CharCode = VK_F12) or (Msg.CharCode = VK_Down) or (Msg.CharCode = VK_UP) or (Msg.CharCode = VK_Left) or (Msg.CharCode = VK_Right) or (Msg.CharCode = VK_PRIOR) or (Msg.CharCode = VK_NEXT)) then Abort; end
Clique aqui para fazer login e interagir na Comunidade :)