Dutch, in this short example, what are you missing? Please show me what you would like to do but don't have.
Dutch, en este breve ejemplo, ¿qué te falta? Por favor, muéstrame qué te gustarÃa hacer pero no tienes.
// C:\FWH2603\SAMPLES\TITTEST1.PRG - kapiabafwh@gmail.com
#include "FiveWin.ch"
#include "constant.ch"
#include "ttitle.ch"
STATIC oWnd
FUNCTION Main()
LOCAL aGradBox := { nRgb( 255,255,255), nRgb(254,254,254)}
LOCAL oTitle, oTitle1, oTitle3, oldTitle, oFontTitle, oBrush, oBox, oSay, ;
oBtn, oBoldTitle
DEFINE BRUSH oBrush GRADIENT aGradBox
DEFINE FONT oBoldTitle NAME 'Tahoma' SIZE 0, -16 BOLD
DEFINE FONT oFontTitle NAME 'Tahoma' SIZE 0, -18
DEFINE WINDOW oWnd TITLE "Exemplo de TTitle" COLOR "N/W*"
// Criando o Title
@ 0, 0 TITLE oTitle OF oWnd SIZE oWnd:nWidth, 40 // BRUSH oBrush // no me gusta.
// Adicionando Gradiente ao Title -> +-
// oTitle:aGrdBack := { { 1, nRgb( 255,255,255), nRgb(254,254,254) } }
// good
oTitle:aGrdBack := { { 0.5, nRGB( 100, 100, 100 ), nRGB( 0, 0, 0 ) }, ;
{ 0.5, nRGB( 0, 0, 0 ), nRGB( 100, 100, 100 ) } }
// Sombra/vulto/fantasma. jajajaja.
// oTitle:nShadow := 0 // good.
// Adicionando Texto ao Title
@ 10, 20 SAY "Relatório de Vendas" OF oTitle COLOR "W+" PIXEL UPDATE ;
FONT oFontTitle
@ 40, 0 TITLE oTitle OF oWnd SIZE oWnd:nWidth, 40 // NOBORDER //PIXEL
oTitle:aGrdBack := { { 1, nRgb( 255,255,255), nRgb(254,254,254) } }
// oTitle:nShadow := 0
@ 05, 15 TITLETEXT OF oTitle TEXT "Text1" COLOR "+R+W+" FONT oBoldTitle 3d
@ 14, 20 TITLEIMG OF oTitle BITMAP "..\bitmaps\16X16\close.bmp" TRANSPARENT ;
SIZE 30, 16 REFLEX ANIMA ACTION MsgInfo( "fire any action from here" )
oTitle:lRound := .T.
oTitle:lBorder := .T.
oTitle:nClrLine1 := 255
@ 90, 00 TITLE oTitle1 SIZE oWnd:nWidth, 50 OF oWnd // BRUSH oBrush // no good
oTitle1:aGrdBack = {}
oTitle1:nShadow := 0
oTitle1:lTransparent := .T.
// oTitle1:Show()
@ 010, 20 SAY oSay PROMPT "Relatório de Vendas" OF oTitle1 COLOR "W+" ;
PIXEL FONT oFontTitle CENTER SIZE 500, 18 UPDATE
// Object oSay
oSay:SetText(" New Centered Text " )
@ 180, 210 BTNBMP oBtn PROMPT "&Exit" SIZE 100, 30 OF oWnd ;
ACTION( oWnd:End() ) CENTER
oBtn:cToolTip := "Exit"
ACTIVATE WINDOW oWnd CENTERED
oBrush:End()
oBoldTitle:End()
oFontTitle:End()
RETURN NIL
// FIN / END