Page 1 of 1

UrlLnk with Popup menu

PostPosted: Fri Feb 23, 2024 1:34 pm
by Silvio.Falconi
Is it possible to insert a popup menu at the bottom of a UrlLnk control?
I tried but it showed the menu far from url lnk

On TexplorerBar I insert a link

local bClick := { | o | addMenu() }

oPanel4:AddLink( "testlink", bClick, ".\bitmaps\mail.bmp",oFontSmall,CLR_BLACK,CLR_WHITE )


tried with

Function AddMenu()

local aPoint := AdjustWnd( oPanel, oPanel:nTop-100, oPanel:nLeft )

MENU oMenu POPUP

---
ACTIVATE POPUP oMenu WINDOW oWnd AT aPoint[1], aPoint[2]

Re: UrlLnk with Popup menu

PostPosted: Fri Feb 23, 2024 7:27 pm
by Antonio Linares
Have you tried this ?

ACTIVATE POPUP oMenu WINDOW oPanel AT aPoint[1], aPoint[2]

Re: UrlLnk with Popup menu

PostPosted: Sat Feb 24, 2024 3:27 pm
by Silvio.Falconi
Antonio Linares wrote:Have you tried this ?

ACTIVATE POPUP oMenu WINDOW oPanel AT aPoint[1], aPoint[2]


Yes of course
Probabile i made an error because before i saw a menu on down, far from panel but then It Is not showed anywhere

Re: UrlLnk with Popup menu

PostPosted: Sat Feb 24, 2024 6:03 pm
by Antonio Linares
Try this:

ACTIVATE POPUP oMenu WINDOW oPanel AT 0, 0

Re: UrlLnk with Popup menu

PostPosted: Sun Feb 25, 2024 4:22 pm
by Silvio.Falconi
Antonio Linares wrote:Try this:

ACTIVATE POPUP oMenu WINDOW oPanel AT 0, 0


yes now I see it on the left of the oPanel