edutraini Posted April 9, 2013 Report Share Posted April 9, 2013 Pessoal preciso controlar no listbox quando a pessoa muda de coluna. Hoje o controle é feito pela propriedade bchange mas ele so funciona quando muda a linha para cima ou para baixo mas quando muda a coluna eu não consigo controlar pois tenho um listbox com 12 meses e preciso saber quando ele muda de coluna para atualizar uma outra função obrigado Quote Link to comment Share on other sites More sharing options...
kapiaba Posted April 9, 2013 Report Share Posted April 9, 2013 Não entendi a explanação muito bem, seria algo assim? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=7534&p=34504&hilit=columna+del+listbox#p34504 Ou http://forums.fivetechsupport.com/viewtopic.php?f=6&t=6699&p=29963&hilit=columna+del+listbox#p29963 abs, Quote Link to comment Share on other sites More sharing options...
vagner Posted April 9, 2013 Report Share Posted April 9, 2013 Olá, Já tentou com o lCellStyle ? Quote Link to comment Share on other sites More sharing options...
Eduardo Bilato Posted April 9, 2013 Report Share Posted April 9, 2013 A propriedade que indica o número da coluna num listbox é a nColAct por exemplo: tenho um listbox com 3 colunas, são elas: Código, Nome, Data_Nasc se meu cursor estiver na coluna Código, objeto:nColAct será igual a 1 se meu cursor estiver na coluna Nome, objeto:nColAct será igual a 2 se meu cursor estiver na coluna Data_Nasc, objeto:nColAct será igual a 3 Quote Link to comment Share on other sites More sharing options...
Erciley Junior Posted April 9, 2013 Report Share Posted April 9, 2013 Uma forma fácil de tratar é no bKeyDown #include "InKey.ch" . . . oLbx:bKeyDown:={|a| IF( a == VK_LEFT , FUNCAO01() , .T. ); ,IF( a == VK_RIGHT , FUNCAO02() , .T. ); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.