Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
ComboBox
I have an existing functional Combo Dropdown that I need to enhance. I want to trap whatever the event is when scrolling through the list so I can trigger some associated behavior (refresh a related data pane). I am struggling to find what that event might be. I currently have the click working fine.
I wont tell you all the silly things I tried! I thought it best to step back and ask the opinion of the expert community....
Case Control EQ "OLE_SUBCLASS"
Begin Case
Case Event _eqc "OnComboClick" ; GoSub OnComboClick.OLE_SUBCLASS
Case Event _eqc "OnOptionClick" ; GoSub OnOptionClick.OLE_SUBCLASS
End Case
OnOptionClick.OLE_SUBCLASS:
Send_Event(Param1, "OPTIONS")
Return
OnComboClick.OLE_SUBCLASS:
Send_Event(@WINDOW:".NARROW_LIST", "CLICK")
Return
I wont tell you all the silly things I tried! I thought it best to step back and ask the opinion of the expert community....
Comments
Is it then even possible to get the requested action using an alternate method?
To us they are sort of the same thing. As we scroll we are the EDL is being changed. I thought this was a function of the SRP Control. Admittedly I didnt invesigate that any further.
Now that I say it out loud, are you possibly suggesting that instead of tring to trap the scroll, identify the change in the actual EDL?
That seems a bit too much like common sense...
Yes indeed. It didn't make sense to me that you were refreshing a data pane simply because of scrolling. I figured it had to be related to the content displayed in the editline control.
Normally when content in the editline control is changed this will trigger the CHANGED event. I am not sure if that happens when the SRP Subclass control populates the editline for you. Give it try and let us know?
I've implemented lostfocus events on subclassed editlines (out of habit now) but I think that was the reason - the changed was not a reliable trigger.
I will continue investigating.