cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the matrix row click method with the ModifiersMask parameter?

Former Member
0 Kudos

I wanna to use my program to select all matrix row item on system form. I saw the Help Center noted the row click method:

Description

Activates an et_CLICK event (set focus) on specific cell.

Syntax

Public Sub Click( _

Optional ByVal ClickType As BoCellClickType = 0, _

Optional ByVal ModifiersMask As Long = 0 _

)

Parameters

ClickType

Specifies the type of click according to the BoCellClickType enumeration. Member Description Value

ct_Regular Normal click (after Exit event). 0

ct_Double Double-click. 1

ct_Linked Click on link arrow connected to the cell (only for matrix cells). 2

ct_Collapsed Click on collapse arrow connected to the cell (only for matrix cells). 3

ModifiersMask

A long value specifying a keyboard key pressed together with the click.

The value is a mask allowing you to specify a combination of pressed keys.

What the ModifiersMask parameter mean?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

you may select all rows as

Dim i As Integer
        For i = 1 To oMatrix.RowCount
            oMatrix.SelectRow(i, True, True)
        Next i

The ModifiersMask could mean click together with shift alt or control key.

Former Member
0 Kudos

SelectRow method occur an error:

Item - The item is not a user-defined item [66000-8]

Former Member
0 Kudos

Could ModifiersMask mean click together with shift alt or control key?

May I ref the sample code about simulate holding shift key and select all matrix row item plz?

Former Member
0 Kudos

omatrix.Columns.Item(0).Cells.Item(i).Click(SAPbouiCOM.BoCellClickType.ct_Regular, SAPbouiCOM.BoModifiersEnum.mt_CTRL)

or

omatrix.Columns.Item(0).Cells.Item(i).Click(SAPbouiCOM.BoCellClickType.ct_Regular, 4096)

Former Member
0 Kudos

Petr Verner , Thank U very much. U save my life.

Answers (0)