gibaf Posted July 20, 2012 Report Share Posted July 20, 2012 tentei assim: oCombo:bGotFocus:={|Self| Self:Open()} mas, fica stranho, como se travasse... alguema outra forma de fazer ? desde ja agradeco: MUITO OBRIGADO !!! Gilberto Frohlich - Toledo/PR giba_f@hotmail.com giba_f@yahoo.com.br xHarbour xBuild+Fivewin 2.7+PellesC+(Postgres+DB2) Quote Link to comment Share on other sites More sharing options...
gibaf Posted July 20, 2012 Author Report Share Posted July 20, 2012 tentei assim: oCombo:bGotFocus:={|Self| Self:Open()} mas, fica stranho, como se travasse... alguema outra forma de fazer ? desde ja agradeco: MUITO OBRIGADO !!! Gilberto Frohlich - Toledo/PR giba_f@hotmail.com giba_f@yahoo.com.br xHarbour xBuild+Fivewin 2.7+PellesC+(Postgres+DB2) Quote Link to comment Share on other sites More sharing options...
Eduardo Bilato Posted July 20, 2012 Report Share Posted July 20, 2012 Bom dia Gilberto Já tentou o IsOpen() ? oCombo:bGotFocus:={|Self| Self:IsOpen()id=blue>} Não testei nada aqui, é apenas uma sujestão, veja se funciona att Eduardo de Camargo Bilato FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY email: eduardobilato@gmail.com msn: dunhox@hotmail.com Quote Link to comment Share on other sites More sharing options...
toya Posted July 20, 2012 Report Share Posted July 20, 2012 No Pelles (.Res) em Style selecionar Dropdown List Quote Link to comment Share on other sites More sharing options...
gibaf Posted July 20, 2012 Author Report Share Posted July 20, 2012 citação:No Pelles (.Res) em Style selecionar Dropdown List id=quote>id=quote>Graaaaaaaaaaaaaaaaaaaaaaaaaaaaaannnnnndee TOYA !!! tudo bem ??? obrigado pela dica, mas no caso, nao foi feito no Pelles, e sim pelo @ l,c. obrigado mesmo assim... abraaaaaaaaaacao... Gilberto Frohlich - Toledo/PR giba_f@hotmail.com giba_f@yahoo.com.br xHarbour xBuild+Fivewin 2.7+PellesC+(Postgres+DB2) Quote Link to comment Share on other sites More sharing options...
Erciley Junior Posted July 20, 2012 Report Share Posted July 20, 2012 Gibaf, mas é isso que o Toya disse, mude o STYLE #define CBS_SIMPLE 1 // 0x0001 #define CBS_DROPDOWN 2 // 0x0002 #define CBS_DROPDOWNLIST 3 // 0x0003 #define CBS_OWNERDRAWFIXED 16 // 0x0010 #define CBS_AUTOHSCROLL 64 // 0x0040 #define CBS_OEMCONVERT 128 // 0x0080 #define CBS_SORT 256 // 0x0100 #define CBS_DISABLENOSCROLL 2048 // 0x0800id=code>id=code>não testei, mas seria isso id=code>id=code>Erciley Junior (FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY) NÃO ABANDONE O POST, QUEREMOS SABER SE SUA DÚVIDA/PROBLEMA TEVE SOLUÇÃO Quote Link to comment Share on other sites More sharing options...
gibaf Posted July 20, 2012 Author Report Share Posted July 20, 2012 citação:Gibaf, mas é isso que o Toya disse, mude o STYLE #define CBS_SIMPLE 1 // 0x0001 #define CBS_DROPDOWN 2 // 0x0002 #define CBS_DROPDOWNLIST 3 // 0x0003 #define CBS_OWNERDRAWFIXED 16 // 0x0010 #define CBS_AUTOHSCROLL 64 // 0x0040 #define CBS_OEMCONVERT 128 // 0x0080 #define CBS_SORT 256 // 0x0100 #define CBS_DISABLENOSCROLL 2048 // 0x0800id=code>id=code>não testei, mas seria isso id=code>id=code>Erciley Junior (FWH8.01 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY) NÃO ABANDONE O POST, QUEREMOS SABER SE SUA DÚVIDA/PROBLEMA TEVE SOLUÇÃO id=quote>id=quote>obrigado pela resposta... mas, como mudar o style em tempo de execucao ???? att Gilberto Frohlich - Toledo/PR giba_f@hotmail.com giba_f@yahoo.com.br xHarbour xBuild+Fivewin 2.7+PellesC+(Postgres+DB2) Quote Link to comment Share on other sites More sharing options...
gibaf Posted July 20, 2012 Author Report Share Posted July 20, 2012 tambem tentei usar assim (o q seria perfeito pra mim): oCombo:GotFocus := {|| oCombo:Open() } mas, tambem nao funcionou... Gilberto Frohlich - Toledo/PR giba_f@hotmail.com giba_f@yahoo.com.br xHarbour xBuild+Fivewin 2.7+PellesC+(Postgres+DB2) Quote Link to comment Share on other sites More sharing options...
ricardomouramarques Posted July 23, 2012 Report Share Posted July 23, 2012 Gilberto, Testei aqui e funcionou. Faça assim: oCombo:bGotFocus:={|| oCombo:Open()} id=code>id=code>Obs: Observe o valor da altura (nheight) no SIZE. Ele não se refere a altura do combobox fechado, e sim da altura máxima do combobox aberto. EX: @ 34, 271 COMBOBOX oCombo VAR nCbx_1 ITEMS aCbx_1 SIZE 160, 100 PIXEL of oDlg // veja por ex. o valor 100 no size oCombo:bGotFocus:={|| oCombo:Open()} id=code>id=code>Ricardo. 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.