on 2005 Oct 13 11:35 AM
Hi All,
I am developing a UDO form. I need to make "Context Menu" -> "Insert Row" work.
I've seen in the forum, that I need to program this myself. The problem is that I can not figure out how to find the number of the row where the cursor is placed when the user right clicks to get the context menu.
I can make things work if I select the line first (make it orange) and then use the function Matrix.GetNetSelectedRow, but the built-in functionality of Delete Line does not require that I select the row first.
Any help appriciated
Rgds
Jesper Carstensen
I capture the row number using this code in ItemEvent:
If pVal.ItemUID = "MyMatrixUID" And pVal.EventType = et_Click And pVal.BeforeAction = False Then
If pVal.Row > 0 Then
myRow = pVal.Row
Else
myRow = 0
End If
End If
Applying the row number to your Matrix.AddRow method should do the trick.
I hope the above helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
the itemevents pval have a Row Property.. Use that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.