After recompilation with FWH11.8 instead of 10.5, my button bar became from this:
to this:
How do I fix this? TIA.
method buildBar() class TWinCMS
local oPopup, oBtn, oPopup1, obtn1, oFont
::oBarBtns := array(BTNBAR_MAX)
DEFINE BUTTONBAR ::oBar OF ::oWnd SIZE 60, 60 2007
// Files
MENU oPopup1 POPUP
MENUITEM "TradePac Accounting Series" ACTION ::xtract(1)
*MENUITEM "3rd Party Accounting Software" ACTION ::xtract(2)
SEPARATOR
MENUITEM "Configure..." action ::oXtract:activate()
ENDMENU
DEFINE BUTTON ::oBarBtns[BTNBAR_XTRACT] oBtn1 OF ::oBar ACTION ::xtract(1) ;
RESOURCE "extract" PROMPT "Extract" ;
MENU oPopup1 TOOLTIP "Extract A/R"
DEFINE BUTTON ::oBarBtns[BTNBAR_NEW] OF ::oBar ACTION ::add() ;
RESOURCE "new" PROMPT "New" TOOLTIP "New Customer"
.
.
if ! Empty( ::cCaption )
if ::oFont == nil
::SetFont( ::oWnd:oFont )
if ::oFont == nil .and. ! Empty( ::oWnd )
::SetFont( ::oWnd:oWnd:oFont )
endif
endif
endif
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
::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
method buildBar() class TWinCMS
DEFINE FONT oFont NAME "Tahoma" SIZE 0,-11
.
.
aeval(::oBar:aControls, {|o| o:setFont(oFont)})
oFont:end()
return nil
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 103 guests