Popup on PRIM_LIST with Left Click
Posted: Tue Mar 20, 2018 4:57 am
I am trying to show a popup on a PRIM_LIST with a Left Click.
I can show it with the right click by setting the Popup property in the List, but I need it to be on the left click instead.
I've tried showing the popup in the ItemGotSelection event, but the popup instantly closes.
The popup itself is pretty basic (its basically just a nav menu)
This is inside VLF-ONE, but its a normal PRIM_LIST component.
If I turn AutoClose off, the popup will stay open, but then I have to worry about closing it when the user does not select an item in the popup.
Any thoughts on getting a popup to work with left click?
Thanks,
Joe
I can show it with the right click by setting the Popup property in the List, but I need it to be on the left click instead.
I've tried showing the popup in the ItemGotSelection event, but the popup instantly closes.
Code: Select all
evtroutine handling(#ReportList.ItemGotSelection)
#CMGSANObjectManager.avFrameworkManager.avRecordTrace component(#COM_OWNER) event("Item Got Selection")
#ReportListPopup.ShowPopup context(#COM_OWNER)
endroutine
evtroutine handling(#ReportListPopup.Prepare)
#CMGSANObjectManager.avFrameworkManager.avRecordTrace component(#COM_OWNER) event("ReportListPopup Prepare")
endroutine
evtroutine handling(#ReportListPopup.Closed)
#CMGSANObjectManager.avFrameworkManager.avRecordTrace component(#COM_OWNER) event("ReportListPopup Closed")
endroutine
Code: Select all
define_com class(#PRIM_PPNL) name(#ReportListPopup) left(865) top(167) closeonclick(True) width(145) layoutmanager(#Layout4) height(50) autofocus(True)
define_com class(#PRIM_LABL) name(#Label1) caption('Client Burden') displayposition(1) ellipses(Word) height(25) left(0) parent(#ReportListPopup) tabposition(1) tabstop(False) top(0) verticalalignment(Center) width(143)
define_com class(#PRIM_LABL) name(#Label2) caption('Credit Control Panel') displayposition(2) ellipses(Word) height(25) left(0) parent(#ReportListPopup) tabposition(2) tabstop(False) top(25) verticalalignment(Center) width(143)
Any thoughts on getting a popup to work with left click?
Thanks,
Joe