FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Little change in TMsgBar
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Little change in TMsgBar
Posted: Fri Feb 22, 2008 08:29 AM
The following little change is to show the cursorhand only on the items with an action defined:

METHOD MouseMove( nRow, nCol, nFlags ) CLASS TMsgBar

   local n, oItem

   for n = 1 to Len( ::aItem )
      oItem = ::aItem[ n ]
      if oItem:IsOver( nRow, nCol ) .and. oItem:bAction != nil  // EMG
         CursorHand()
         if ::nItem != n
            ::nItem := n
            ::DestroyToolTip()
         endif
         ::CheckToolTip()
         return nil
      endif
   next
   ::DestroyToolTip()
   ::nItem := 0

return Super:MouseMove( nRow, nCol, nFlags )


EMG
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Little change in TMsgBar
Posted: Fri Feb 22, 2008 05:38 PM

Enrico,

Thanks!

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion