FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour WINDOW Metrostyle pero no al 100%
Posts: 422
Joined: Mon Aug 17, 2009 12:18 PM
WINDOW Metrostyle pero no al 100%
Posted: Sat Mar 21, 2020 07:09 PM

Hola a todos,

Espero ante todo que todos estéis bien en estos tiempos tan difíciles.

Quiero usar el metrostyle para tener una ventana que ocupe toda la pantalla, pero que deje ver la barra de Windows.

define METRO_STYLE ( WS_POPUP + WS_VISIBLE + WS_MAXIMIZE ) la muestra, sin embargo, al 100%, impidiendo ver la barra de Windows.

¿Alguna idea por favor?

Muchas gracias.

Saludos,



Eduardo
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: WINDOW Metrostyle pero no al 100%
Posted: Sat Mar 21, 2020 08:07 PM
Eduardo,

desktop.prg
Code (fw): Select all Collapse
#include "FiveWin.ch"

function Main()

   local oWnd

   DEFINE WINDOW oWnd STYLE nOr( WS_POPUP, WS_VISIBLE ) ;
      FROM 0, 0 TO GetDesktopArea()[ 3 ], GetDesktopArea()[ 4 ] PIXEL ;
      COLOR 0, RGB( 30, 30, 30 )

   ACTIVATE WINDOW oWnd ;
      ON CLICK oWnd:End()

return nil
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion