FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para CA-Clipper STYLE WS_NOCAPTION
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 10:25 AM

En la barra superior de la ventana principal de una aplicaci贸n, quiero que aparezca lo siguiente:

Icono + T铆tulo + icono minimizar + icono maximizar y el icono "x" (cerrar) deshabilitado.

Casi lo consigo, definiendo la ventana asi:

DEFINE WINDOW oWnd TITLE cTitle MENU fMenu ICON oico ;
STYLE (WS_CAPTION, WS_MINIMIZEBOX, WS_MAXIMIZEBOX)

Todo correcto, pero desaparece el icono.

驴Alguna idea?

Un saludo y feliz fin de semana.

Un saludo



Manuel
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 12:27 PM

Manuel,

Posiblemente tengas que a帽adir WS_POPUP

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 07:24 PM

Antonio,

En primer lugar, muchas gracias por contestar.

He realizado el cambio que me indicas y no funciona. Te acompa帽o el m贸dulo de samples teststyl.prg, con las modificaciones que he hecho y que no pita:

// Using alternatives window styles sample

include "FiveWin.ch"

function Main()

local oWnd, oIco

DEFINE ICON oIco FILENAME "..\icons\Customer.ico"

DEFINE WINDOW oWnd FROM 8, 8 TO 20, 40 ;
TITLE "Testing Style Clause in Dialogs" ;
ICON oIco ;
STYLE nor (WS_POPUP, WS_CAPTION,WS_MINIMIZEBOX,WS_MAXIMIZEBOX)

ACTIVATE WINDOW oWnd MAXIMIZED
return nil

Un saludo

Un saludo



Manuel
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 09:16 PM

Manuel,

Es WS_SYSMENU en vez de WS_POPUP. Mi error :)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 10:20 PM

Antonio, sigue sin funcionar.- Ahora sale el icono, pero no desactiva la "x" de cerrar. Es como si no pusiera ningun Style. Este es el c贸digo:

// Using alternatives window styles sample

include "FiveWin.ch"

function Main()

local oWnd, oIco

DEFINE ICON oIco FILENAME "..\icons\Customer.ico"

DEFINE WINDOW oWnd FROM 8, 8 TO 20, 40 ;
TITLE "Testing Style Clause in Dialogs" ;
ICON oIco ;
STYLE nor (WS_SYSMENU, WS_CAPTION,WS_MINIMIZEBOX,WS_MAXIMIZEBOX)

ACTIVATE WINDOW oWnd MAXIMIZED
return nil

Un saludo



Manuel
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
STYLE WS_NOCAPTION
Posted: Sat Apr 01, 2006 10:38 PM

Manuel,

Puedes desactivar la "X" usando un WHEN .f.

Como prevees que salga el usuario de esa ventana ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 711
Joined: Thu Oct 06, 2005 09:57 PM
STYLE WS_NOCAPTION
Posted: Sun Apr 02, 2006 05:02 AM

Antonio,

Funcion贸 con IF VALID.-

Muchas gracias.

Un saludo



Manuel

Continue the discussion