Vamos tentando... alguma coisa acaba saindo.
Talvez seja interessante usar pra GETs.
GTWVG - Melhorias
Moderador: Moderadores
- JoséQuintas
- Administrador

- Mensagens: 20267
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
GTWVG - Melhorias
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
- JoséQuintas
- Administrador

- Mensagens: 20267
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
GTWVG - Melhorias
E o pushbutton com resize automático de imagem
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
- JoséQuintas
- Administrador

- Mensagens: 20267
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
GTWVG - Melhorias
Como consegui o groupbox?
Nada demais.
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Aí mostra que é só criar como classe BUTTON.
E na janela, colocar os "styles" pra groupbox:
alterei esta parte
Como eu já disse por aqui, os controles WVG* são janelas Windows comuns.
E como o fonte é PRG, facilita alterar.
Imaginem então quem conhece GUI, o que poderiam fazer com a GTWVG....
Minhas teorias estão começando a aparecer na prática.... rs
Nada demais.
https://msdn.microsoft.com/en-us/librar ... s.85).aspx
Aí mostra que é só criar como classe BUTTON.
E na janela, colocar os "styles" pra groupbox:
Então, peguei PUSHBUT.PRG como base, que atende o pushbutton e....This control can be created from the BUTTON class by using the CreateWindowEx function. It has the BS_GROUPBOX, WS_CHILD, and WS_GROUP styles.
alterei esta parte
Código: Selecionar todos
::style := WIN_WS_CHILD + BS_GROUPBOX + WIN_WS_GROUP + BS_NOTIFY + BS_FLAT
E como o fonte é PRG, facilita alterar.
Imaginem então quem conhece GUI, o que poderiam fazer com a GTWVG....
Minhas teorias estão começando a aparecer na prática.... rs
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
- JoséQuintas
- Administrador

- Mensagens: 20267
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
GTWVG - Melhorias
Teste simples do groupbox nos GETs.
Só uma linha a mais.
É só protótipo.
Falta descobrir como alterar as cores do texto e do contorno.
Nota: Se fosse uso prático, não poderia ser a mesma descrição pra todos os Gets.
Só uma linha a mais.
Código: Selecionar todos
PROCEDURE Main
LOCAL GetList := {}, cText := Space(20)
SetColor( "W/B" )
SetMode( 33, 80 )
CLS
@ 2, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
@ Row() + 3, 2 GET cText
SetGetBox( GetList )
READ
RETURN
FUNCTION SetGetBox( oGetList )
LOCAL oBox, oGet
FOR EACH oGet IN oGetList
oBox := wvgGroupBox():New()
oBox:PointerFocus := .F.
oBox:Caption := "test of groupbox use in gets"
oBox:Create( , , { -( oGet:Row - 1 ), -oGet:Col }, { -2, -Len( Transform( oGet:VarGet(), oGet:Picture ) ) } )
oBox:ToolTipText := "test"
NEXT
RETURN NIL
Falta descobrir como alterar as cores do texto e do contorno.
Nota: Se fosse uso prático, não poderia ser a mesma descrição pra todos os Gets.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
- JoséQuintas
- Administrador

- Mensagens: 20267
- Registrado em: 26 Fev 2007 11:59
- Localização: São Paulo-SP
GTWVG - Melhorias
com cores no get, e tamanho maior
Código: Selecionar todos
SetColor( "W/B,W/GR+,,,W/B" )
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"
https://github.com/JoseQuintas/