is it possible, to keep a TTITLE transparent on windws resize ?

On Window-resize, the area from startup is used. Refresh doesn't help.

Best regards
Uwe
i work with FW.
If you have any questions about special functions, maybe i can help.


Uwe,
I think it should be enough to do a:
oTitle:hBackBrush = nil
oTitle:Refresh()
but the problem is that hBackBrush is declared as PROTECTED, so the above may fail, unless you remove PROTECTED from such DATA.


Uwe
I am following this thread with interest. I have many Mdi and MdiChilds with lots of controls and I would like to find an easy way to be able to re-size the window and have the controls ( buttons, folders, etc ) "magically"
resize ??
Also .. I like your Mdi title concept of being able to over-lay bitmaps on a painted background.
Thanks
Rick Llipkin

SetDlgGradient() // turns off and setgradient
yLOGIN := WNetGetUser() // FiveWin function
yLOGIN := substr(UPPER( yLOGIN )+space(8),1,8)
oSAY := NIL
cSAY := NIL
cWELCOME := "WELCOME to the PMO Strategic Projects Vital Signs Application"
cSAY := "The System could not resolve your UserID "
cSAY1 := yLOGIN
cSAY2 := "You now have a choice to Add yourself as a"
cSAY3 := "Project Manager or enter the program as Read Only?"
nOK := 0
DEFINE BRUSH oBru FILENAME ( cDEFA+"\PMO.BMP" )
DEFINE DIALOG oDLG1 ;
TITLE "WELCOME" ;
SIZE 700, 400 BRUSH oBRU TRANSPARENT
@ 0, 2 SAY cWELCOME OF oDlg1 COLOR "W+/W"
oDlg1:aControls[ 1 ]:lTransparent = .t.
@ 1, 2 SAY cSAY OF oDlg1 COLOR "W+/W"
oDlg1:aControls[ 2 ]:lTransparent = .t.
@ 1.5,2 SAY cSAY1 OF oDlg1 COLOR "W+/W"
oDlg1:aControls[ 3 ]:lTransparent = .t.
@ 2,2 SAY cSAY2 OF oDlg1 COLOR "W+/W"
oDlg1:aControls[ 4 ]:lTransparent = .t.
@ 2.5,2 SAY cSAY3 OF oDlg1 COLOR "W+/W"
oDlg1:aControls[ 5 ]:lTransparent = .t.
@ 50, 10 BTNBMP oBtn1 RESOURCE "YES" ;
SIZE 145, 15 OF oDlg1 ;
ACTION( oDlg1:End(), nOK := 1 )
oBtn1:lTransparent := .T.
@ 70, 10 BTNBMP oBtn2 RESOURCE "PMGR" ;
SIZE 145, 15 OF oDlg1;
ACTION( IF( _Addum( oDlg1, "UNKNOWN" ),nOK := 4 , nOK := 2 ))
oBtn2:lTransparent := .T.
@ 90, 10 BTNBMP oBtn3 RESOURCE "CANCEL" ;
SIZE 145, 15 OF oDlg1 ;
ACTION( oDlg1:END(), nOK := 3)
oBtn3:lTransparent := .T.
ACTIVATE DIALOG oDlg1 CENTERED
LightGreyGrad()
Rick,
I don't mean the controls to be painted transüarent on a dialog-brush.
I want to show the dialog be painted transparent itself, related to the window-brush.
The next question would be, how controls are painted on this ( maybe possible ) transparent dialog.
Will they still be transparent, using thw window-brush ?
Some month ago, I remember tested a solution with Mr. Rao, using a Main-window and a child.
The child captured the area from the main-window and used it as a brush. It looked like transparent.
Maybe the same logic is needed.
Best Regards
Uwe ![]()
Also I would like to know,
if there is any solution, to do the same with a DIALOG transparent,
showing the Window-brush / Image ?
#include "fivewin.ch"
function Main()
local cFileJpg := "penguins.jpg"
local oWnd, oBar, oBrush
DEFINE BRUSH oBrush FILE cFileJpg RESIZE
DEFINE WINDOW oWnd MDI BRUSH oBrush
DEFINE BUTTONBAR oBar OF oWnd SIZE 100,32 2007
DEFINE BUTTON OF oBar PROMPT "TranspDlg" ACTION TranspDlg()
SET MESSAGE OF oWnd TO '' 2007
ACTIVATE WINDOW oWnd
RELEASE BRUSH oBrush
return nil
static function TranspDlg()
local oDlg, oFont
DEFINE FONT oFont NAME "VERDANA" SIZE 0,-30 BOLD
DEFINE DIALOG oDlg SIZE 300,200 PIXEL ;
TITLE "Transparent Dialog" ;
COLOR CLR_HRED,RGB(1,1,1) OF WndMain()
@ 40,00 SAY "TRANSPARENT DIALOG" SIZE 150,40 PIXEL OF oDlg ;
FONT oFont TRANSPARENT CENTER
oDlg:nSeeThroClr := RGB(1,1,1)
ACTIVATE DIALOG oDlg CENTERED IN PARENT NOMODAL ;
VALID ( oFont:End(), .t. )
return nil



Some month ago, I remember tested a solution with Mr. Rao, using a Main-window and a child.