FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour BUG in Trbbtn
Posts: 1048
Joined: Mon Oct 24, 2005 09:54 AM
BUG in Trbbtn
Posted: Thu Jun 26, 2014 08:00 AM
In ::New() of this class are the code
Code (fw): Select all Collapse
  if ! ::oWnd:l2013

When I use this button-class outside from ribbon e.g. in a Dialog this couldnt functioning as the data l2013 not present.
Regards,
Günther
---------------------------------
office@byte-one.com
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: BUG in Trbbtn
Posted: Thu Jun 26, 2014 09:34 AM
In the trbtn.prg, the condition is like this:
Code (fw): Select all Collapse
   if ( ::oWnd:IsKindOf( "TRIBBONBAR" ) .or. ::oWnd:IsKindOf( "TRBGROUP" ) ) .and. ;
      ! ::oWnd:l2013


The condition ! ::l2013 is checked only if ::oWnd is RibbonBar or TRbGroup, provided /z compiler flag is not used while compiling trbtn.prg. All FWH lib prgs are complied without /z flag because FWH sources use shortcutting.

I hope you are not compiling this prg separately with /z flag and linking with your application.
Regards



G. N. Rao.

Hyderabad, India

Continue the discussion