Skip to Content
0
Former Member
May 16, 2013 at 10:03 AM

How to color a checkbox in Matrix when it is clicked ?

31 Views

Hi all,

I have create a UI Matri with checkBoxes in its cells.

I have the following issue:

When a CheckBox in the matrix is checked, I want the specific cell to get colored at the same moment. My code colors the specific cell,

when another checkbox is clicked. Is there any way to perform?

The code I use is the following:

If (pVal.Before_Action = False And pVal.EventType = SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED) Then

Dim checkForm As SAPbouiCOM.Form

Dim checkMatrix As SAPbouiCOM.Matrix

checkForm = SBO_Application.Forms.ActiveForm

checkMatrix = checkForm.Items.Item("MtrxChk").Specific

checkMatrix.CommonSetting.SetCellBackColor(1, 3, 220)

End If