a btnbmp question (show popup)

a btnbmp question (show popup)

Postby Silvio.Falconi » Tue Jan 22, 2019 3:50 pm

Image

For not show the black arrow On Btnbmp class I add on the method PaintPopupSection the bold string

if ::oPopup != nil .and. GetClassName( GetParent( Self:hWnd ) ) = "TBAR"

Now the final user can open the popupmenu but must click at the end of btnbmp, soon the final user not found the exact point with the mouse

on the source I made

aBtn[ nelemento]:oPopUp := { |oBtn|BtnPopMenu( oBtn,aBtn,nElemento ) }

How I can make to move the point of the click on the center of btnbmp ?

or please, you have another solution ?


I tried also in this mode But it make error (I saw a post of Nages)

aBtn[nElemento ]:bAction := { |oBtn| aBtn[nElemento ]:oPopup := { |oBtn| BtnPopMenu( oBtn ) }, ;
aBtn[nElemento ]:ShowPopUp(), ;
aBtn[nElemento]:oPopup := nil }
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
User avatar
Silvio.Falconi
 
Posts: 7076
Joined: Thu Oct 18, 2012 7:17 pm

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: jmartial and 42 guests