I need to open a popup on each folder of the RibbonBar , but I not Know wich id the folder and if there are many folders on this ribbonBar
to found with folder is clicked I use the method nOverPrompt() : thi function return the Value 0 if the mouse is not on a folder of the ribbon , or return the number of the folder
and I made this :
DEFINE RIBBONBAR oRBar OF oWnd PROMPTS "One"
For n= 1 to len(oRbar:aprompts) // Read how many folder there are on ribbon
oRbar:adialogs[n]:bRButtonUp = { | nRow, nCol, nFlags |if(oRBar:nOverPrompt( nRow, nCol )==n,MenuTab(nRow,nCol),)) } // MenuTab is a simply popmenu function
next
but if I click on each folder it not open any popup
WHY NOT RUN OK
FWH .. BC582.. xharbour