uiConnect() - Can it connect to standard shape events?
Posted: Thu Oct 17, 2019 2:11 pm
Is it possible to use uiConnect() to connect to the standard shape events?
For instance I would like to connect to the "selectionChanged" event of a table. However, the selectionChanged event is not recognised despite being shown in the results of the .event() function.
Source Code:
main()
{
DebugN("myTable events:", myTable.events());
uiConnect("selectionChangedUiCB", "myTable", "selectionChanged");
}
void selectionChangedUiCB(mapping event)
{
DebugN("selectionChangedUiCB");
}
Log Result:
WCCOAui (7), 2019.10.17 10:030:21.202, CTRL, WARNING, 72, Function not defined,
Module: _QuickTest_
Panel: C:\WinCC_OA_Projects\myProject\panels\examples\myPanel.pnl
Script: Initialize
Line: 4, uiConnect, selectionChanged
WCCOAui6:["myTable events:"][dyn_string 15 items
WCCOAui6: 1: "scrolledCB"
WCCOAui6: 2: "selectionChanged"
WCCOAui6: 3: "headerClickedCB"
WCCOAui6: 4: "textFieldOut"
WCCOAui6: 5: "message"
WCCOAui6: 6: "dragDropCB"
WCCOAui6: 7: "dragEnterCB"
WCCOAui6: 8: "dragStartCB"
WCCOAui6: 9: "langChanged"
WCCOAui6: 10: "onMouseOver"
WCCOAui6: 11: "onLosingFocus"
WCCOAui6: 12: "onFocus"
WCCOAui6: 13: "doubleClick"
WCCOAui6: 14: "rightClick"
WCCOAui6: 15: "alertConfirm"
WCCOAui6:]
Thanks,
Louis
For instance I would like to connect to the "selectionChanged" event of a table. However, the selectionChanged event is not recognised despite being shown in the results of the .event() function.
Source Code:
main()
{
DebugN("myTable events:", myTable.events());
uiConnect("selectionChangedUiCB", "myTable", "selectionChanged");
}
void selectionChangedUiCB(mapping event)
{
DebugN("selectionChangedUiCB");
}
Log Result:
WCCOAui (7), 2019.10.17 10:030:21.202, CTRL, WARNING, 72, Function not defined,
Module: _QuickTest_
Panel: C:\WinCC_OA_Projects\myProject\panels\examples\myPanel.pnl
Script: Initialize
Line: 4, uiConnect, selectionChanged
WCCOAui6:["myTable events:"][dyn_string 15 items
WCCOAui6: 1: "scrolledCB"
WCCOAui6: 2: "selectionChanged"
WCCOAui6: 3: "headerClickedCB"
WCCOAui6: 4: "textFieldOut"
WCCOAui6: 5: "message"
WCCOAui6: 6: "dragDropCB"
WCCOAui6: 7: "dragEnterCB"
WCCOAui6: 8: "dragStartCB"
WCCOAui6: 9: "langChanged"
WCCOAui6: 10: "onMouseOver"
WCCOAui6: 11: "onLosingFocus"
WCCOAui6: 12: "onFocus"
WCCOAui6: 13: "doubleClick"
WCCOAui6: 14: "rightClick"
WCCOAui6: 15: "alertConfirm"
WCCOAui6:]
Thanks,
Louis