Hi to all.
I found a little problem in the trbutton action with a popup menu. When you click the first time
the button the popup menu is shown. But for closing it you must click outside of the menu.
Is possible to change this way of acting clicking again on the button and closing it ?
This is the code that make this. Is there a way of knowing if the popup menu is open
and then making the close of the object instead of activating the menu ?
Thanks a lot.
Massimo.
case ::nTypeButton == TYPE_SPLITPOPUP
if nRow >= ::nPopupMargin .or. !lAction
oWnd := ::oWnd
oWnd:NcMouseMove() // close the tooltip
if ! ::opopup:Active()
oWnd:oPopup = ::oPopup
::oPopup:Activate( ::nTop + ::nHeight(), ::nLeft, oWnd, .f. )
oWnd:oPopup = nil
else
::Opopup:End()
endif
::Refresh()
else
::click()
endif