cancel
Showing results for 
Search instead for 
Did you mean: 

how do you stop user from resizing matrix column?

Former Member
0 Kudos
176

how do you stop user from resizing matrix column?

I have a matrix (user defined) where there is a column I dont want the user to resize.

how can I do this, I dont see any event getting fired when I resize the matrix columns?

Indika.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

put this in your itemevent

if pval.formuid="yourformuid" then

oForm = SBO_App.Forms.ActiveForm

Dim oMatrix As SAPbouiCOM.Matrix

oMatrix=oForm.Items.Item("yourMatrixName").Specific

oMatrix.Columns.Item("yourColumnName").Width=50

end if

with this every time that a event in your form is launched the column returns to size 50 , you can restrict more if you want, like something pval.formuid="....." and pval.itemuid="yourmatrixname"

hope it helps you, kind regards

Salvador Biot

Answers (1)

Answers (1)

Former Member
0 Kudos

I've searched in the API, but couldn't find anything, neither Matrix, Column or TitleObject... And I also can't find a event... So I'll guess it's not possible...

The only other thing I can imagine is that you run a synchronious thread that (re)sets the column width every second...?