FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with Vtaskbar of Paco
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Problem with Vtaskbar of Paco
Posted: Mon Jan 25, 2016 10:03 AM
Antonio,

do you have change some function of Paco ?

because I have a problem on Vtaskbar





this class use DrawText function to write the text on title

I tried to insert olt drawtext function ( winapi fwh1501) but it make the same
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: Problem with Vtaskbar of Paco
Posted: Mon Jan 25, 2016 12:41 PM
perhaps I resolved it
there is an error on font

if I set the font run ok

sample :

oVmenu:oFonttitle:= oFontsample


if I not set the font on object ...the class call a function

Code (fw): Select all Collapse
if ::oFontTitle == nil
      hFont := CreaFCapt()
      lDestroyFont := .t.
   else
      hFont := ::oFontTitle:hFont
   endif
   hOldFont   := SelectObject(  hDC, hFont )


the function is this

HB_FUNC( CREAFCAPT )
{
NONCLIENTMETRICS info;
info.cbSize = sizeof(info);
SystemParametersInfo( SPI_GETNONCLIENTMETRICS, sizeof(info), &info, 0 );
hb_retnl( (LONG ) CreateFontIndirect( &info.lfCaptionFont ) );
}



what is changed ?
I 'm thinking...is there something of modify on CreateFontIndirect function ?


Or also I can resolve with

hFont := ::GetFont() // windows class
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com

Continue the discussion