Transparent Say on window

Transparent Say on window

Postby Loach » Fri Apr 17, 2009 6:43 am

Hi!
If I try this code:
Code: Select all  Expand view

#include "FiveWin.ch"

function Main()
local oWnd
local oMenu,oBrush1,oSay1

define brush oBrush1 file "..\bitmaps\cara.bmp"
DEFINE WINDOW oWnd TITLE "Test Say" from 0,0 to 400,800 pixel menu oMenu brush oBrush1
activate window oWnd on init mmm(oWnd,oSay1)
return nil

function mmm(oWnd,oSay1)
   @ 2,2 say oSay1 prompt "This a Test" of oWnd SIZE 100, 130 COLOR CLR_WHITE PIXEL  transparent
   @ 10,120 button "Test" pixel action oSay1:SetText( "Change Text")  
return .t.
 

transparent say works perfect! But if I use this "rc" this file:
Code: Select all  Expand view

1 24 "WinXP/WindowsXP.Manifest"
 

transparent say doesn't work...
What shell I do to make work transparent say on wondow with WindowsXP.Manifest ?
Thanks!
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: Transparent Say on window

Postby Silvio » Fri Apr 17, 2009 9:48 am

oSay1:ltransparent:=.t.
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Transparent Say on window

Postby Loach » Fri Apr 17, 2009 10:59 am

Thanks Mr Silvio!
But it doesn't work... :cry:
Even if I try to do
Code: Select all  Expand view

activate window oWnd on init (mmm(oWnd,@oSay1),oSay1:ltransparent:=.t.)
 
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus

Re: Transparent Say on window

Postby Silvio » Fri Apr 17, 2009 6:41 pm

on paint instead of on init
Best Regards, Saludos

Falconi Silvio
User avatar
Silvio
 
Posts: 3107
Joined: Fri Oct 07, 2005 6:28 pm
Location: Teramo,Italy

Re: Transparent Say on window

Postby Antonio Linares » Sun Apr 19, 2009 8:07 am

Sergey,

Try it this way:
Code: Select all  Expand view

#include "FiveWin.ch"

function Main()
local oWnd
local oMenu,oBrush1,oSay1

define brush oBrush1 file "c:\fwh\bitmaps\cara.bmp"
DEFINE WINDOW oWnd TITLE "Test Say" from 0,0 to 400,800 pixel menu oMenu brush oBrush1
activate window oWnd on init mmm(oWnd,oSay1)
return nil

function mmm(oWnd,oSay1)
   @ 2,2 say oSay1 prompt "This a Test" of oWnd SIZE 100, 130 COLOR CLR_WHITE PIXEL transparent
   @ 10,120 button "Test" pixel action oSay1:SetText( "Change Text")
return .t.

function IsAppThemed()

return .F.
 
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Transparent Say on window

Postby Loach » Mon Apr 20, 2009 5:55 am

Thank you so much!
With function IsAppThemed() my dreams come true... :D
Best regards!
Sergey (Loach) Abelev
fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55
Loach
 
Posts: 41
Joined: Thu Dec 22, 2005 7:39 am
Location: Gomel, Belarus


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 96 guests