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

2013-04-05 Thread Antonio Scuri
Sorry, but no. There is no way to keep the same proportion. Maybe you can set the RASTERWIDTH# of some of the columns, to keep their size small while FITTOSIZE will expand the others. Best, Scuri From: Lance Larsen [mailto:llar...@islinc.com] Sent: sexta-feira, 5 de abril de 2013 18:22

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

2013-04-05 Thread Lance Larsen
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 work. I added dlg.shrink="YES" so that the dialog would attempt to shrink the compon

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

2013-04-05 Thread Antonio Scuri
Hi, FITTOSIZE will set RASTERWIDTH1,. for all columns. So when 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.RASTERWIDTH

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

Re: [Iup-users] Scintilla in iup

2013-04-05 Thread Antonio Scuri
Hi Lance, It is almost ready. But need more adjustments. It will be included in the next release schedule to this month, and yes there will be Lua bindings. It will be an additional control in a separate library. Best, Scuri From: Lance Larsen [mailto:gaffer...@gmail.com] Sent: sex

[Iup-users] Scintilla in iup

2013-04-05 Thread Lance Larsen
Scuri, I see in cvs that you are working on adding a Scintilla component. That is great! Scintilla will be an excellent addition. How you had success testing the component so far in iup? When do you expect it to be included in iup? Will it be in the next release, and when is that scheduled for? W

[Iup-users] Auto-resizing the Matrix component

2013-04-05 Thread Lance Larsen
I am evaluating iup for a project where I am combining the SciTE text editor for popup dialogs that help with adding or editing content. I need to use Lua to access iup. One thing I wanted to do was set up a dialog that included a spreadsheet view that expands with the dialog. I saw that there is a