Re: [Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Antonio Scuri
To: IUP discussion list. Subject: Re: [Iup-users] Auto-resizing the Matrix component Ah, yes. I should have caught that in needed to set RASTERWIDTH values from your last reply. For the benefit of others that might run into the same issues, I will mention the other changes I made to get this to

Re: [Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Lance Larsen
hen you set it again, you must first reset them to NULL or nil in Lua mat.RASTERWIDTH1 = nil mat.RASTERWIDTH2 = nil mat.RASTERWIDTH3 = nil mat.RASTERWIDTH4 = nil mat.RASTERWIDTH5 = nil mat.RASTERWIDTH6 = nil mat.RASTERWIDTH7 = nil Best, Scuri *From:*Lance Larsen [mailto:gaffer...@gmail.com]

Re: [Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Antonio Scuri
mat.RASTERWIDTH7 = nil Best, Scuri From: Lance Larsen [mailto:gaffer...@gmail.com] Sent: sexta-feira, 5 de abril de 2013 15:02 To: IUP discussion list. Subject: Re: [Iup-users] Auto-resizing the Matrix component Scuri, I implemented the resize callback on the dialog instead. This did fix the

Re: [Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Lance Larsen
Scuri, I implemented the resize callback on the dialog instead. This did fix the problem with the matrix view not being drawn, but the matrix columns are not being resized when I expand the dialog bounds. I turned on the matrix view border, so I can see that the matrix view is resizing, just not t

Re: [Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Antonio Scuri
Hi Lance, The resize_cb callback in Lua can not be replaced, you must do it in C. But I suggest you to use the resize_cb of the dialog instead, but you will have to call the iup.Refresh(dlg) function before setting FITTOSIZE. When setting FITTOSIZE all columns that don't have RASTERWIDT