Hi all,
Do we already need to link it ?
I checked that using the manifest file there are some problems using transparent images.
//#ifdef __CLIPPER__
static function IsAppThemed() ; return .f.
static function DrawPBack() ; return nil
//#endif
Daniel Garcia-Gil wrote:I'm not sure with this change, i didn't test all combinations
if IsAppThemed() .and. Empty( ::oBrush:hBitmap ) .and. ! ::lTransparent
DrawPBack( ::hWnd, ::hDC )
elseIf ! Empty( ::oBrush:hBitMap )
#ifdef __CLIPPER__
SetBrushOrgEx( ::hDC, 8 - ::nLeft() % 8, 8 - ::nTop() % 8 )
#else
SetBrushOrgEx( ::hDC, nBmpWidth( ::oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oBrush:hBitmap ) - ::nTop )
#endif
FillRect( ::hDC, GetClientRect( ::hWnd ), ::oWnd:oBrush:hBrush )
endif
Marco Turco wrote:Daniel,
your solution is the same as removing the manifest file, the themes doesn't runs anymore in the app.
//#ifdef __CLIPPER__
static function IsAppThemed() ; return .f. // <== static
static function DrawPBack() ; return nil //<== static
//#endif
Marco Turco wrote:Manuel,
I tried your solution also but now the problem appairs on all bitmaps where I use the transparent clause.
if IsAppThemed() .and. Empty( ::oBrush:hBitmap ) .and. ! ::lTransparent
DrawPBack( ::hWnd, ::hDC )
else
#ifdef __CLIPPER__
SetBrushOrgEx( ::hDC, 8 - ::nLeft() % 8, 8 - ::nTop() % 8 )
#else
SetBrushOrgEx( ::hDC, nBmpWidth( ::oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oBrush:hBitmap ) - ::nTop )
#endif
FillRect( ::hDC, GetClientRect( ::hWnd ), ::oWnd:oBrush:hBrush )
endif
Daniel Garcia-Gil wrote:Hello Marco...Marco Turco wrote:Daniel,
your solution is the same as removing the manifest file, the themes doesn't runs anymore in the app.
Are you sure???
do you write "STATIC" before Function??
- Code: Select all Expand view
//#ifdef __CLIPPER__
static function IsAppThemed() ; return .f. // <== static
static function DrawPBack() ; return nil //<== static
//#endif
Marco Turco wrote:However with your turn-around and also with the Manual solution there are problems using bitmap on folder because they are now not transparent.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 35 guests