Page 1 of 1

How to show the SAY with Transparent background

Posted: Thu Sep 27, 2007 1:29 am
by tsai8839
Hi Everyone,

I have a problem in my application, the SAY “Date:” was not in transparent background. The example is listed as below:

Code: Select all

// Testing a SAY in transparent

#include "FiveWin.ch"

//------------------------------------------------------------------------//

function Main()

   local oDlg, oBru
   local dDay := Date()
   local oGet
   DEFINE BRUSH oBru FILE "sky.bmp"
   DEFINE DIALOG oDlg TITLE "Testing..." BRUSH oBru TRANSPARENT

   @ 2,  2 SAY "Date:" OF oDlg
   @ 2,  6 GET oGet VAR dDay OF oDlg SIZE 40, 10 SPINNER ;
      VALID ! Empty( dDay )

   @ 3,  7 BUTTON "&Ok" OF oDlg SIZE 30, 12 ACTION oDlg:End()
   @ 3, 16 BUTTON "&Cancel" SIZE 30, 12 OF oDlg ACTION oDlg:End() CANCEL

   oGet:bGotFocus := { || oGet:SelectAll() }

   ACTIVATE DIALOG oDlg CENTERED

return nil

//------------------------------------------------------------------------//
Any idea?

Re: How to show the SAY with Transparent background

Posted: Thu Sep 27, 2007 7:23 am
by Enrico Maria Giordano
It is transparent here using latest FWH version.

EMG

Posted: Thu Sep 27, 2007 7:58 am
by tsai8839
Enrico,
It is transparent here using latest FWH version.
But it is not transparent here using FWH Dec. 2006 version.
:(

Posted: Thu Sep 27, 2007 9:01 am
by Enrico Maria Giordano
Your only option is to upgrade your FWH, I'm afraid. There are too many changes in the new version, if I'm not wrong. Antonio?

EMG

Posted: Thu Sep 27, 2007 8:24 pm
by Antonio Linares
Yes, there are lots of changes from 2006