RESOLUCAO DE TELA

Projeto MiniGui - Biblioteca visual para Harbour/xHarbour

Moderador: Moderadores

Stanis Luksys
Colaborador
Colaborador
Mensagens: 1329
Registrado em: 18 Jun 2005 03:04
Localização: São Paulo
Contato:

RESOLUCAO DE TELA

Mensagem por Stanis Luksys »

Ola,

Existe alguma funcao no harbour / miniGUI para saber a resolucao de tela utilizada pelo PC?

Agradeco.
Stanis Luksys
sites.google.com/hblibs

Apoiar e se utilizar de projetos opensource não é uma questão de boicote, mas sim de liberdade.
Utilize, aprimore e distribua.
Avatar do usuário
Antonio
Usuário Nível 3
Usuário Nível 3
Mensagens: 347
Registrado em: 14 Ago 2003 17:33
Localização: Sao Paulo - SP
Contato:

Re: RESOLUCAO DE TELA

Mensagem por Antonio »

Stanis Luksys escreveu:Ola,

Existe alguma funcao no harbour / miniGUI para saber a resolucao de tela utilizada pelo PC?

Agradeco.

Código: Selecionar todos


#include "minigui.ch"

func main()
local w := getdesktopwidth() , h := getdesktopheight()

define window  teste                          ;
       at      0,0                            ;
       width   535                            ;
       height  350                            ;
       title 'Resolução'                      ;
       main                                   ;
       icon nil


       @ 200,180 label l1 value 'Lagura :' width 300 height 24 font 'arial' size 10 bold
       @ 240,180 label l2 value 'Altura :' width 300 height 24 font 'arial' size 10 bold
       @ 200,250 label l3 value str(w)     width 300 height 24 font 'arial' size 10 bold
       @ 240,250 label l4 value str(h)     width 300 height 24 font 'arial' size 10 bold

end window

teste.center()
teste.activate()

return nil
Antonio Carlos
Harbour 3.2 (20180213)
Hwgui 2.20 3b | PostGresql 9.5 | ADO/ODBC
Responder