Little change in TMsgBar

Little change in TMsgBar

Postby Enrico Maria Giordano » Fri Feb 22, 2008 8:29 am

The following little change is to show the cursorhand only on the items with an action defined:

Code: Select all  Expand view  RUN
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
User avatar
Enrico Maria Giordano
 
Posts: 8716
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Fri Feb 22, 2008 5:38 pm

Enrico,

Thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42107
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 65 guests