Skip to Content
author's profile photo Former Member
Former Member

Matrix: fixed column width

Hi Experts

How I can disable changing of the column(s) width in the matrix?

Thanks

Sierdna S

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 25, 2008 at 08:39 AM

    The only way is disable the click on header - catch click in itemeevent anf pval.row = 0 set bubbleevent.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.