FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Bitmap on toolbar alignment not fixed in 9.10
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Bitmap on toolbar alignment not fixed in 9.10
Posted: Mon Oct 26, 2009 08:42 PM

There was a report, confirmed by several people, that there exists a problem with the bitmaps / text on toolbars. When the buttons are first displayed, they are higher on the bar, but if you highlight them with the mouse, they will drop lower on the bar.

This was not fixed in 9.10.

Is there a fix ?

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bitmap on toolbar alignment not fixed in 9.10
Posted: Wed Oct 28, 2009 04:57 PM
This seems a proper fix (Paint() method of TBtnBmp class):

Code (fw): Select all Collapse
   if ::lBarBtn
      ::l2007 = ::oWnd:l2007
      IF ::oFont == NIL
         if ::oWnd:oFont != nil
            if ::oWnd:oFont:cFaceName != "Tahoma"
               DEFINE FONT oFont NAME "Tahoma" SIZE 0, -11
               ::oWnd:SetFont( oFont )
            endif
            ::SetFont( ::oWnd:oFont )
         else
             DEFINE FONT oFont NAME "Tahoma" SIZE 0, -11
            ::oWnd:SetFont( oFont )
            ::SetFont( oFont )
         endif
      else
         ::oWnd:SetFont( ::oFont )
      endif
   else
      if ::oFont == nil
         ::SetFont( ::oWnd:oFont )
         if ::oFont == nil .and. ! Empty( ::oWnd )
           ::SetFont( ::oWnd:oWnd:oFont )
         endif
      else
         ::SetFont( ::oFont )
      endif
   endif


EMG
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Bitmap on toolbar alignment not fixed in 9.10
Posted: Thu Oct 29, 2009 04:02 PM

Thank you. Perhaps it will be fixed in the next release. I don't like having to keep separate copies of classes because when other improvements are made we have to update the class manually. This is a known bug reported by several people.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Bitmap on toolbar alignment not fixed in 9.10
Posted: Thu Oct 29, 2009 05:07 PM

Yes, confirmed: it will be fixed in the next FWH release.

EMG

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Bitmap on toolbar alignment not fixed in 9.10
Posted: Fri Oct 30, 2009 03:55 PM

Thank you. It did fix the problem. Your help is appreciated.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit

Continue the discussion