Little change in TMsgBar

Post Reply
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Little change in TMsgBar

Post by Enrico Maria Giordano »

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

Code: Select all

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
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Enrico,

Thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply