kapiaba Posted September 8, 2009 Report Share Posted September 8, 2009 Galera, a partir de qual versão, isto foi implementado? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=16587 Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 Galera, a partir de qual versão, isto foi implementado? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=16587 Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted September 8, 2009 Report Share Posted September 8, 2009 citação:Galera, a partir de qual versão, isto foi implementado? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=16587 Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe id=quote>id=quote>Ola Kapiaba, na verdade esta rotina não é do fivewin, e sim, uma rotina criada por um usuario, mais sinceramente fica muito feio, não gostei, muito melhor a vget, alem de ser um produto nacional(rsrsrs)... Abraços Luiz Fernando msn: empresoft@globo.com skype:empresoft empresoft@globo.com FWH 8.04,XHARBOUR 1.1,PELES,XDEV,VLIB,ADS 8.1 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 citação: citação:Galera, a partir de qual versão, isto foi implementado? http://forums.fivetechsupport.com/viewtopic.php?f=6&t=16587 Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe id=quote>id=quote>Ola Kapiaba, na verdade esta rotina não é do fivewin, e sim, uma rotina criada por um usuario, mais sinceramente fica muito feio, não gostei, muito melhor a vget, alem de ser um produto nacional(rsrsrs)... Abraços Luiz Fernando msn: empresoft@globo.com skype:empresoft empresoft@globo.com FWH 8.04,XHARBOUR 1.1,PELES,XDEV,VLIB,ADS 8.1 id=quote>id=quote>VALEU, OBRIGADO. SE FICA FEIO, ISTO NÃO POOOODDDYYYYY!! Não vou usar, Kruzes!!! Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Marca Posted September 8, 2009 Report Share Posted September 8, 2009 Olá a todos Se tirarem a borda do get o efeito fica bem melhor. Marcelo Ferro Petrópolis - Rj Fwh9.01/xHarbour 1.1.0 Simplex /SqlLib /xMate/WS e Pelles Quote Link to comment Share on other sites More sharing options...
Luiz Fernando Posted September 8, 2009 Report Share Posted September 8, 2009 citação:Olá a todos Se tirarem a borda do get o efeito fica bem melhor. Marcelo Ferro id=quote>id=quote>Ola Marcela blz,fiz tb este teste, mais a cor do GET não é preenchida nos cantos aonde faz o arredondamento... Abraços Luiz Fernando msn: empresoft@globo.com skype:empresoft empresoft@globo.com FWH 8.04,XHARBOUR 1.1,PELES,XDEV,VLIB,ADS 8.1 Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 citação: citação:Olá a todos Se tirarem a borda do get o efeito fica bem melhor. Marcelo Ferro id=quote>id=quote>Ola Marcela blz,fiz tb este teste, mais a cor do GET não é preenchida nos cantos aonde faz o arredondamento... Abraços Luiz Fernando msn: empresoft@globo.com skype:empresoft empresoft@globo.com FWH 8.04,XHARBOUR 1.1,PELES,XDEV,VLIB,ADS 8.1 id=quote>id=quote>Pequena correção: É MARCELO!! kCte!! kkkk NÃO É UMA FUNÇÃO?? NÃO Dà PARA ALTERA-LA?? João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Marca Posted September 8, 2009 Report Share Posted September 8, 2009 citação:Pequena correção: É MARCELO!! kCte!! kkkk NÃO É UMA FUNÇÃO?? NÃO Dà PARA ALTERA-LA?? João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe id=quote>id=quote>hahaha Obrigado Kapiaba Sim é uma função e basta trocar a cor onde aqui vc corrige para a cor de seu get hBrush := CreateSolidBrush( RGB( 255, 255, 255 ) ) que não ira acontecer o problema Marcelo Ferro Petrópolis - Rj Fwh9.01/xHarbour 1.1.0 Simplex /SqlLib /xMate/WS e Pelles Editado por - marca on 08/09/2009 15:43:59 Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 Bacaninha xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 Alterado a cor xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 citação:Alterado a cor xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net id=quote>id=quote>Gostei Lailton, por favor POSTE A FUNÇÃO AQUI, para que todos possam pegar. Obrigado. Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 na hora de criar a tela no (PELLEs ou WORKSHOP) em BORDER coloco NO a altura coloque 10 redefine get oGetb var cVarb ID 4002 of odlg color CLR_WHITE,CLR_BLUE oDlg:bPainted := {|| SetGetRounded(oGetb, oDlg, CLR_BLUE ) } function SetGetRounded( oControl, oDlg, cCor ) local hBrush, hOldBrush default cCor:= RGB( 255, 255, 255 ) // padrao a cor fica branco if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( cCor ) hOldBrush := SelectObject( oDlg:hDC, hBrush ) RoundRect( oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth + 3,; oControl:nTop + oControl:nHeight + 2,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif return xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 Uma pergunta: oDlg:bPainted := {|| SetGetRounded(oGetb, oDlg, CLR_BLUE ) } Se eu quiser colocar no ON INIT, eu posso? Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Luisão Posted September 8, 2009 Report Share Posted September 8, 2009 Junte a função do Lailton com essa aqui, e você pode definir a cor e mudar todos os GETs da dialog de uma só vez: function SetGetRounded( oDlg ) local hBrush, hOldBrush, oControl FOR WX = 1 TO LEN(oDLG:aControls) oControl:= oDLG:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( RGB( 255, 255, 255 ) ) hOldBrush := SelectObject( oDlg:hDC, hBrush ) RoundRect( oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth +3 ,; oControl:nTop + oControl:nHeight + 2 ,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif next return(.t.) id=code>id=code>Luis Fernando Jr.(Luisão) "Seize the day or die regretting the time you lost" FWH8.1 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 citação:Junte a função do Lailton com essa aqui, e você pode definir a cor e mudar todos os GETs da dialog de uma só vez: function SetGetRounded( oDlg ) local hBrush, hOldBrush, oControl FOR WX = 1 TO LEN(oDLG:aControls) oControl:= oDLG:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( RGB( 255, 255, 255 ) ) hOldBrush := SelectObject( oDlg:hDC, hBrush ) RoundRect( oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth +3 ,; oControl:nTop + oControl:nHeight + 2 ,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif next return(.t.) id=code>id=code>Luis Fernando Jr.(Luisão) "Seize the day or die regretting the time you lost" FWH8.1 + SQLLIB 1.9d + xHB 1.10 + xDev 0.65 + @SAY id=quote>id=quote>Excelente!!! Adoro isto, começo a brincar com voces e olha o Show!! Obrigado. Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Luiz Arruda (ICO) Posted September 8, 2009 Report Share Posted September 8, 2009 Como assim Juntar ??? tentei "juntar" e deu esse erro.. Error description: Error BASE/1004 Class: 'ARRAY' has no exported method: ACONTROLS Luiz Arruda - Corumba(MS) FiveWin 9.04 [x]Harbour xDev WS -- Não existe nada de completamente errado no mundo mesmo um relógio parado consegue estar certo duas vezes por dia. - Não Abandone Seu Tópicoid=red> Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 Boa Luisão eu tambem ja estava montando isso agora todos os Get´s ficaram no estyle mto baum xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
Luiz Arruda (ICO) Posted September 8, 2009 Report Share Posted September 8, 2009 Desculpem ai ... descobri Abraços.. Luiz Arruda - Corumba(MS) FiveWin 9.04 [x]Harbour xDev WS -- Não existe nada de completamente errado no mundo mesmo um relógio parado consegue estar certo duas vezes por dia. - Não Abandone Seu Tópicoid=red> Quote Link to comment Share on other sites More sharing options...
kapiaba Posted September 8, 2009 Author Report Share Posted September 8, 2009 citação:Desculpem ai ... descobri Abraços.. Luiz Arruda - Corumba(MS) FiveWin 9.04 [x]Harbour xDev WS -- Não existe nada de completamente errado no mundo mesmo um relógio parado consegue estar certo duas vezes por dia. - Não Abandone Seu Tópicoid=red> id=quote>id=quote>Assim não Luiz, POSTE O ´JUNTADO´ Porfa. Eita forum ´porreta´. Obrigado Abraços. João Santos - São Paulo. kmt_karinha@pop.com.br kapiaba@brfree.com.br Fone: (11) 3106-2832 FWH 2.7 - xHARBOUR 0.99.61 - WorkShop.Exe Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 Agora melhorado #include "fivewin.ch" function main() public odlg, oget, cVar:=space(50),ogetb, cVarb:=space(50) define dialog odlg REsource "TELA" oDlg:bPainted:= {|| SetGetRounded(oDlg, CLR_BLUE) } redefine get oGet var cVar ID 4001 of odlg color CLR_WHITE,CLR_BLUE redefine get oGetb var cVarb ID 4002 of odlg color CLR_WHITE,CLR_BLUE activate dialog odlg centered return function SetGetRounded( _oDlg, cCor ) local hBrush, hOldBrush, Wx, oControl default cCor:= RGB( 255, 255, 255 ) FOR WX = 1 TO LEN(_oDlg:aControls) oControl:= _oDlg:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( cCor ) hOldBrush := SelectObject( oDlg:hDC, hBrush ) RoundRect( oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth + 3,; oControl:nTop + oControl:nHeight + 2,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif NEXT WX return Nil id=code>id=code>Resultado: gostei :D:D:D xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
Marca Posted September 8, 2009 Report Share Posted September 8, 2009 citação:Agora melhorado #include "fivewin.ch" function main() public odlg, oget, cVar:=space(50),ogetb, cVarb:=space(50) define dialog odlg REsource "TELA" oDlg:bPainted:= {|| SetGetRounded(oDlg, CLR_BLUE) } redefine get oGet var cVar ID 4001 of odlg color CLR_WHITE,CLR_BLUE redefine get oGetb var cVarb ID 4002 of odlg color CLR_WHITE,CLR_BLUE activate dialog odlg centered return function SetGetRounded( _oDlg, cCor ) local hBrush, hOldBrush, Wx, oControl default cCor:= RGB( 255, 255, 255 ) FOR WX = 1 TO LEN(_oDlg:aControls) oControl:= _oDlg:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( cCor ) hOldBrush := SelectObject( oDlg:hDC, hBrush ) RoundRect( oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth + 3,; oControl:nTop + oControl:nHeight + 2,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif NEXT WX return Nil id=code>id=code>Resultado: gostei :D:D:D xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net id=quote>id=quote>Somente uma pequena correção na função do Lailton Onde esta oDlg é _oDlg Marcelo Ferro Petrópolis - Rj Fwh9.01/xHarbour 1.1.0 Simplex /SqlLib /xMate/WS e Pelles Quote Link to comment Share on other sites More sharing options...
LUIS1361303120 Posted September 8, 2009 Report Share Posted September 8, 2009 E CASO QUEIRA COLOCA COR DE FUNDO COMO AMARELO, ACRESCENEI ESTA LINHA: hCtlFocus := SetColor(nRgb( 255, 255, 000 )) Function SetGetRounded( _oDlg, cCor ) local hBrush, hOldBrush, Wx, oControl default cCor:= RGB( 255, 255, 255 ) FOR WX = 1 TO LEN(_oDlg:aControls) oControl:= _oDlg:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( cCor ) hCtlFocus := SetColor(nRgb( 255, 255, 000 )) hOldBrush := SelectObject( _oDlg:hDC, hBrush ) RoundRect( _oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth + 3,; oControl:nTop + oControl:nHeight + 2,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( _oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif NEXT WX return Nil Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 Isso mesmo Sorry function SetGetRounded( _oDlg, cCor ) local hBrush, hOldBrush, Wx, oControl default cCor:= RGB( 255, 255, 255 ) FOR WX = 1 TO LEN(_oDlg:aControls) oControl:= _oDlg:aControls[WX] if "TGET" $ oControl:ClassName() hBrush := CreateSolidBrush( cCor ) hOldBrush := SelectObject( _oDlg:hDC, hBrush ) RoundRect( _oDlg:hDC, oControl:nLeft - 3 ,; oControl:nTop - 2 ,; oControl:nLeft + oControl:nWidth + 3,; oControl:nTop + oControl:nHeight + 2,; oControl:nHeight / 2 ,; oControl:nWidth ) SelectObject( _oDlg:hDC, hOldBrush ) DeleteObject( hBrush ) endif NEXT WX return Nil xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net Quote Link to comment Share on other sites More sharing options...
CTOAS Posted September 8, 2009 Report Share Posted September 8, 2009 Amigos... Função muito boa, só um detalhe... Quando o GET esta DISABLE() fica as bordas na cor mas o núcleo do GET fica branco com as letras cinzas. []'s Email: christiano.silveira@gmail.com Quote Link to comment Share on other sites More sharing options...
Guest n/a Posted September 8, 2009 Report Share Posted September 8, 2009 estou tentando arumar o disable mais ainda sem sucesso. xHarbour1.1.0|Fwh9.2|Bcc55|Ribbonbar.lib|Pelles|MySQL|PostgreSQL http://www.redstarsoft.net 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.