Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Edittable cellType Option - onOptionClick not firing
I'm working in OI10 and the 64 bit version of SRP controls and I ran into a problem I am trying to solve. I have a setup SRP edittable where all of the cells are set to read only. When the user clicks a checkbox on the screen, I update some of the cells to be option types.
for example, for almost every row in a column I would do the following calls in a loop:
Call Set_Property(OLECtrlEntID, "OLE.CellType[":Col:";":I:"]", "Option")
Call Set_Property(OLECtrlEntID, "OLE.CellProtection[":Col:";":I:"]", "None")
Call Set_Property(OLECtrlEntID, "OLE.CellConv[":Col:";":I:"]", "":@FM:@FM:@FM:@FM:@FM:1)
The cell becomes editable and I can manually modify the value and it verifies, but the option event doesn't seem to work.
I do some qualifies before the user can switch and I can intercept the rest with calls as follows:
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnClick", 1)
* multiselect events
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.PosChanging", 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnCheckChanged", 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnMouseMove", 1)
Call Set_Property(OLECtrlEntID, "OLE.SuppressMouseMoveEvent", 1)
* planning mode events
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'OnOptionClick', 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'BeforeUpdate', synch_event)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'AfterUpdate', 1)
Am I possibly missing a step that makes the OnOptionClick fire when I try and click the option button? Perhaps a new step that is needed in 64 bit that we weren't using in 32 bit. I notice that when I click on the option the button doesn't seem to depress either, like I am not allowed to press the button. Don't know if that helps
for example, for almost every row in a column I would do the following calls in a loop:
Call Set_Property(OLECtrlEntID, "OLE.CellType[":Col:";":I:"]", "Option")
Call Set_Property(OLECtrlEntID, "OLE.CellProtection[":Col:";":I:"]", "None")
Call Set_Property(OLECtrlEntID, "OLE.CellConv[":Col:";":I:"]", "":@FM:@FM:@FM:@FM:@FM:1)
The cell becomes editable and I can manually modify the value and it verifies, but the option event doesn't seem to work.
I do some qualifies before the user can switch and I can intercept the rest with calls as follows:
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnClick", 1)
* multiselect events
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.PosChanging", 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnCheckChanged", 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", "OLE.OnMouseMove", 1)
Call Set_Property(OLECtrlEntID, "OLE.SuppressMouseMoveEvent", 1)
* planning mode events
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'OnOptionClick', 1)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'BeforeUpdate', synch_event)
Call Send_Message(OLECtrlEntID, "QUALIFY_EVENT", 'AfterUpdate', 1)
Am I possibly missing a step that makes the OnOptionClick fire when I try and click the option button? Perhaps a new step that is needed in 64 bit that we weren't using in 32 bit. I notice that when I click on the option the button doesn't seem to depress either, like I am not allowed to press the button. Don't know if that helps
Comments
we are still facing the same issue mentioned above, is there any updates about his?
we updated to the latest version and yet we are still facing the same issue, is there any changes that need to be done? the OnOptionClick event still doesn't fire.
Should we qualify the event after we add the option to the cell? does this matter?\
cheers,
We confirmed we were using the version in question by using the get_property of the ole.version in the edittable to confirm we are using the proper version, but still no depress and thus no onoptionclick event firing.