on 07-25-2008 9:31 AM
Hi Experts
How I can disable changing of the column(s) width in the matrix?
Thanks
Sierdna S
The only way is disable the click on header - catch click in itemeevent anf pval.row = 0 set bubbleevent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Petr
Thank you for reply.
I have done the proof, but it does not work. I enclose my code.
Andrei
Private Sub SBO_Application_ItemEvent( _
ByVal FormUID As String, _
ByRef pVal As SAPbouiCOM.ItemEvent, _
ByRef BubbleEvent As Boolean _
) Handles SBO_Application.ItemEvent
Dim oForm As SAPbouiCOM.Form
oForm = SBO_Application.Forms.Item(FormUID)
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_CLICK
If pVal.Row = 0 _
And pVal.FormUID = FormUID _
And pVal.ItemUID = "mtx00" _
Then
SBO_Application.SetStatusBarMessage( _
"STOP...", _
SAPbouiCOM.BoMessageTime.bmt_Short, False)
BubbleEvent = False
End If
'...
End Select
End Sub
Petr,
Thank you very match.
I has found what work this: 2 captions above the matrix: click on the matrix headers / captions => resize the columns to standard widths.
Good weekend
Andrei
P.S. Code
...
Select Case pVal.EventType
Case SAPbouiCOM.BoEventTypes.et_CLICK
If pVal.BeforeAction _
And pVal.FormUID = sFormUID _
And ((pVal.ItemUID.Equals("lRic") Or pVal.ItemUID.Equals("lCon")) _
Or (pVal.Row = 0 And pVal.ItemUID.Equals("mtx00"))) _
Then
SBO_Application.SetStatusBarMessage( _
"Stop columns resizing.", _
SAPbouiCOM.BoMessageTime.bmt_Short, False)
Call Matrix_SetColumnsWidths(oForm)
BubbleEvent = False
End If
...
Edited by: Sierdna S on Jul 25, 2008 1:56 PM
User | Count |
---|---|
91 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.