I have created a button class when clicking the button a popup menu appears. This worked fine for some time. Quess what, now it doesn't. Maybe you guys can help me out.
When clicking the button, the popup is not displayed like it was before. That's not really a problem, but when moving the mouse over the popup, the focused menu-item should follow the mousecursor. This does not happen.
The button class has three methods m_resetPopup, m_intoPopup, m_exePopup and an array aPopup containing menu information.
procedure click
local lnRow, lnCol
*-- i do some coding here to determine the lnRow, lnCol
set shadow on
activate screen
define popup myPopup from lnRow,lnCol MARGIN RELATIVE SHADOW COLOR SCHEME 4
*-- Define bar with the right context
for i=1 to alen(this.aPopup,1)
lcAction = "define bar "+alltrim(str(i))+" of myPopup prompt '"+f_str(this.aPopup[i,1])+"'"
&lcAction
lcAction = "on selection bar "+alltrim(str(i))+" of myPopup _screen.activeForm.activeControl.m_exePopup(bar())"
&lcAction
endif
next i
*-- Route the action
activate popup myPopup
release popup myPopup
What am i doing wrong.
Thanks for any help.
Gr,
André
When clicking the button, the popup is not displayed like it was before. That's not really a problem, but when moving the mouse over the popup, the focused menu-item should follow the mousecursor. This does not happen.
The button class has three methods m_resetPopup, m_intoPopup, m_exePopup and an array aPopup containing menu information.
procedure click
local lnRow, lnCol
*-- i do some coding here to determine the lnRow, lnCol
set shadow on
activate screen
define popup myPopup from lnRow,lnCol MARGIN RELATIVE SHADOW COLOR SCHEME 4
*-- Define bar with the right context
for i=1 to alen(this.aPopup,1)
lcAction = "define bar "+alltrim(str(i))+" of myPopup prompt '"+f_str(this.aPopup[i,1])+"'"
&lcAction
lcAction = "on selection bar "+alltrim(str(i))+" of myPopup _screen.activeForm.activeControl.m_exePopup(bar())"
&lcAction
endif
next i
*-- Route the action
activate popup myPopup
release popup myPopup
What am i doing wrong.
Thanks for any help.
Gr,
André