Ao Itamar, ref janela maximizada

Projeto HwGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Itamar, vi seu test no changelog da hwgui.
WVG pode ajudar a dar uma olhada.
Vou testar aqui primeiro.
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/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Mas aqui funcionou do jeito que deveria
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/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Código: Selecionar todos

#include "hwgui.ch"
Function main
LOCAL oFormMain

INIT WINDOW oFormMain MAIN APPNAME "TEST"  ;
AT 0,0 SIZE hwg_Getdesktopwidth(),hwg_Getdesktopheight()

oFormMain:Activate()

return .T.
Aqui normal, do jeito que detesto, em tela inteira.
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/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Código: Selecionar todos

#include "hwgui.ch"

FUNCTION main

   LOCAL oFormMain
   LOCAL a,b

   a := hwg_GetDesktopWidth()
   b := hwg_GetDesktopHeight()
   Alert( Str( a ) + "," + Str( b ) )
   Inkey(0)

   INIT WINDOW oFormMain MAIN APPNAME "TEST"  ;
      AT 0,0 SIZE a, b

   oFormMain:Activate()

   RETURN .T.

FUNCTION hb_gt_gui_default

   RETURN Nil

FUNCTION HB_GTSYS

   REQUEST HB_GT_WVG_DEFAULT
   REQUEST HB_GT_WVG

   RETURN Nil
hwgui.png
hwgui.png (5.42 KiB) Exibido 999 vezes
Ficou em tela cheia, mas.....
A resolução NÃO é essa.
4k é 3840 X 2160
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/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Aqui uso ampliação 50%

2560 * 1.5 = 3840
1440 * 1.5 = 2160

Não sei o que é normal nisso, mas parece que já foi calculado conforme ampliação do Windows.
E abriu em tela maximizada aqui, usando esse tamanho, que não é a resolução da tela.
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/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Faltou dizer, importante pra esse teste:

Removi GT=GUI do arquivo HWGUI.HBC

Senão, o aplicativo fica zumbi e precisa ser fechado no gerenciador de tarefas.

Ao invés de usar GTGUI, usei GTWVG como default, só isso.
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/
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Ao Itamar, ref janela maximizada

Mensagem por Itamar M. Lins Jr. »

Olá!
Vou ver aqui...
Tô um pouco ocupado.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Ao Itamar, ref janela maximizada

Mensagem por JoséQuintas »

Aproveitando:

Nem toda LIB tá preparada pra isso.
A tela vira uma zona, porque a LIB pensa que as coisas estão num lugar, mas estão em outro.
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/
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Ao Itamar, ref janela maximizada

Mensagem por Itamar M. Lins Jr. »

Olá!
Já fiz os testes
Postei como ficou com uns ajustes que fiz. Tá lá no SVN.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Responder