Page 1 of 2

Problem with SAY Transparent - FWH 7.12

Posted: Thu Dec 13, 2007 10:37 pm
by vilian
Hi Antonio,

Before update for version 7.12 it used the following one:

Code: Select all

DEFINE BRUSH oBrush FILENAME "VFATEC01.BMP"

DEFINE DIALOG oWnd RESOURCE "MEMORY" BRUSH oBrush TRANSPARENT ICON oIcone
     REDEFINE SAY oSay[3] TRANSPARENT ID 101          COLOR CLR_HRED  FONT oFont[2] OF oWnd UPDATE
ACTIVATE DIALOG oWnd
And had the following result when it executed oSay[3]:SetText("PASTILHA...")

Image

Now when I execute the same command happens the following one:

Image

Posted: Fri Dec 14, 2007 12:04 am
by Antonio Linares
Vilian,

Are you using the themes manifest file in your RC file ?

What FWH version were you using before ?

Posted: Fri Dec 14, 2007 12:14 am
by vilian
Antonio,

Yes i use manifest. The before version is 2.8(dez/2006)

Posted: Fri Dec 14, 2007 12:14 am
by Antonio Linares
Vilian,

This test is working fine:

Code: Select all

#include "FiveWin.ch"

function Main()

   local oDlg, oSay

   DEFINE BRUSH oBrush FILENAME "test.BMP" 

   DEFINE DIALOG oDlg RESOURCE "test" BRUSH oBrush TRANSPARENT

   REDEFINE SAY oSay TRANSPARENT ID 101 COLOR CLR_HRED OF oDlg UPDATE 

   REDEFINE BUTTON ID 1 OF oDlg ACTION oSay:SetText( Time() )

   ACTIVATE DIALOG oDlg 

return nil

Code: Select all

1 24 "WindowsXP.Manifest" 

test DIALOG 67, 59, 194, 119
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Test"
FONT 8, "MS Sans Serif"
{
 DEFPUSHBUTTON "OK", IDOK, 75, 97, 50, 14
 PUSHBUTTON "Cancel", IDCANCEL, 135, 97, 50, 14
 LTEXT "Text", 101, 28, 35, 60, 8
}
Image

Posted: Fri Dec 14, 2007 3:09 pm
by vilian
Antonio,

I obtained to mount an example with the problem. I can send for some email its?

Posted: Fri Dec 14, 2007 4:00 pm
by Antonio Linares
Vilian,

Yes, please, send it to me as a ZIP file. Thanks,

Posted: Fri Dec 14, 2007 6:06 pm
by vilian
Antonio,

You it received the Memory.zip archive?

Posted: Fri Dec 14, 2007 6:21 pm
by Antonio Linares
Vilian,

Yes, I got and it and built it and its working fine

I have emailed you a screenshot for your review

Posted: Tue Dec 18, 2007 12:37 am
by vilian
Antonio,

I identified what he is causing the problem with the transparency - Themas. In the example that I sent to it, He is enough to exclude the WindowsXp.Manifest that the system functions

Posted: Tue Dec 18, 2007 12:47 am
by Antonio Linares
Vilian,

I just sent you an email some minutes ago commenting you the same :-)

Please email me the themes manifest file that you are using. Is it the one that we provide with FWH in samples\winxp ? Have you modified it ?

Posted: Tue Dec 18, 2007 1:04 am
by vilian
Antonio,

I use that provided with FWH in samples\winxp.

Posted: Tue Dec 18, 2007 1:22 am
by Antonio Linares
Vilian,

Ok, we have been able to reproduce the error here.

Now we can check where the error comes from

Posted: Tue Dec 18, 2007 8:23 am
by Antonio Linares
Vilian,

Bug fixed :-)

We have emailed you new libraries.

many thanks for your feedback,

Posted: Tue Dec 18, 2007 11:34 am
by vilian
Antonio,

Perfect, grateful for the fast reply.

Posted: Tue Dec 18, 2007 11:38 am
by Silvio
vilian,
How you made the part of the ticket ?
I'd like to see it