some month ago, we started a function ( Daniel ) for xBrowse oBrw:cBmpAdjBrush
During testing, i could change the background at runtime.
This function is included now in FWH 9.04.
Testing this function after the Update I noticed that, selecting a Image with button-action,
the background ( adjusted in the browser before ) changes to tiled.
I tested with the same image and function.
Is there something wrong ( changed : doesn't work at runtime anymore ) ?
At start :
With Button-selection ( same Image and function )
It works only at Startup :
- Code: Select all Expand view
....
....
oBrw:l2007 := .T.
oBrw:lHScroll := .T.
oBrw:lVScroll := .T.
// Image - background Works !!
// ------------------------------------
GRADBMP1 := c_path + "IMAGES\Fantasy1.BMP"
NEW_IMAGE( oBrw )
...
...
oBrw:lFastedit := .T.
oBrw:CreateFromResource( 110 )
// Image - select ( Changes to Tiled works like function < NEW_IMAGE( oBrw ) > )
// --------------------------------------------------------------------------------------------
REDEFINE BTNBMP oBtn30 ID 30 OF oDlg5 2007 ;
FILENAME c_path + "preview.bmp" ;
LEFT ;
PROMPT " &Load Image " ;
FONT oProgFont ;
ACTION ( cFilter := "BMP (*.bmp)|*.bmp|", ;
GRADBMP1 := cGetFile32( cFilter,"Select a Picture" ,, "\" + CurDir() + "\IMAGES\" ), ;
IIF( Empty( GRADBMP1 ), MsgAlert( "No file selected !","ATTENTION") , ;
NEW_IMAGE( oBrw ) ) )
// ------------ DISPLAY Adjusted Image -------------
STATIC FUNCTION NEW_IMAGE( oBrw )
oBrw:cBmpAdjBrush := ALLTRIM(GRADBMP1)
oBrw:SetBackGround( ALLTRIM(GRADBMP1) )
aeval( oBrw:aCols, { |o|o:lColTransparent := .t. } )
oBrw:Refresh()
GRADBMP1 := ""
RETURN NIL
// -------------- DISPLAY Tiled Brush ----------------
FUNCTION NEW_BRUSH(oBrw)
Local oBrush1
DEFINE BRUSH oBrush1 FILENAME ALLTRIM(GRADBMP1)
oBrw:SetBackGround( oBrush1 )
RELEASE BRUSH oBrush1
GRADBMP1 := ""
RETURN NIL
Best Regards
Uwe