Re: [Iup-users] difficulty understanding sizing behavior

2015-06-23 Thread Milind Gupta
Hi Antonio, Thank you for the detailed response. Yes I had started looking at the matrix source code already but am a little slow. I was just trying to grasp how does the natural size map to the matrix data structure? Because I wanted to answer the 1st question that why is the natural s

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-23 Thread Antonio Scuri
Hi Milind, Let's approach this in parts... > So now here is the 1st thing I don't understand. Why is matC which has more columns has a natural size in X which is smaller than matA which has 1 less column? This is even before I do any modifications to the sizes of the columns. Here are b

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-23 Thread Milind Gupta
Resending my previous email since it exceeded the size limit for the list: Hi Antonio, Thanks for the quick reply. I modified the program (as you suggested - attached). When I start the program and the dlg:show calls the resizematrix_cb for matA I see the values as shown in the attached i

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-23 Thread Milind Gupta
Hi Antonio, Thanks for the quick reply. I modified the program (as attached). When I start the program and the dlg:show calls the resizematrix_cb for matA I see the following values (as shown in the pasted and attached image watch1): [image: Inline image 1] So now here is the 1st thing I

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-23 Thread Milind Gupta
A follow up for the above value snap shop. After I just resize matA cells (matC is not resized) the values change to: [image: Inline image 1] My calculation distributed 459 to each cell width since it satisfied the equation 936 = 2+ 459*2 + 8*2 and the rows are 10 and 488 since they satisfy the e

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-18 Thread Milind Gupta
Thanks, Milind On Thu, Jun 18, 2015 at 9:15 AM, Antonio Scuri wrote: > Hi Milind, > > I'm busy with some bugs here. As soon as I have some time I'll take a > look at your problem. > > Best, > Scuri > > > On Thu, Jun 18, 2015 at 12:32 PM, Milind wrote: > >> Hi Antonio, >> Do you have any com

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-18 Thread Antonio Scuri
Hi Milind, I'm busy with some bugs here. As soon as I have some time I'll take a look at your problem. Best, Scuri On Thu, Jun 18, 2015 at 12:32 PM, Milind wrote: > Hi Antonio, > Do you have any comments about my email below? If you can help explain the > size questions that will be very h

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-18 Thread Milind
Hi Antonio, Do you have any comments about my email below? If you can help explain the size questions that will be very helpful. Milind On June 17, 2015 2:54:21 PM PDT, Milind Gupta wrote: >Resending my previous email since it exceeded the size limit for the >list. >I will include the att

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-18 Thread Milind Gupta
Hi Antonio, Do you have any comments on my email below? If you can help answer the questions about the size discrepancies that would be really helpful. Thanks, Milind On Wed, Jun 17, 2015 at 2:54 PM, Milind Gupta wrote: Resending my previous email since it exceeded the size limit

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
The aim is to resize the cells with the given constraints like there may be some cells with set widths or a minimum width setting for all cells and the number of columns and rows change dynamically. So now whenever the control is resized the area is distributed in the cells after satisfying the mi

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Karagy
Hi. You want do resize with alive scrollbars? 6/17/2015 10:41, Milind Gupta пишет: > Hi, > I have this sample attached. The aim is to resize the matrix > columns and cells automatically depending on the weight assigned to the > columns whenever the dialog is resized. The sizing algorith

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
On Wed, Jun 17, 2015 at 2:55 PM, Milind Gupta wrote: > > > On Wed, Jun 17, 2015 at 2:54 PM, Milind Gupta > wrote: > >> Resending my previous email since it exceeded the size limit for the >> list. I will include the attachments in the following emails. >> >> Hi Antonio, >> Thanks for th

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
On Wed, Jun 17, 2015 at 2:55 PM, Milind Gupta wrote: > > > On Wed, Jun 17, 2015 at 2:55 PM, Milind Gupta > wrote: > >> >> >> On Wed, Jun 17, 2015 at 2:54 PM, Milind Gupta >> wrote: >> >>> Resending my previous email since it exceeded the size limit for the >>> list. I will include the attachmen

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
On Wed, Jun 17, 2015 at 2:54 PM, Milind Gupta wrote: > Resending my previous email since it exceeded the size limit for the list. > I will include the attachments in the following emails. > > Hi Antonio, > Thanks for the quick reply. I modified the program (as you > suggested - attached)

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
Resending my previous email since it exceeded the size limit for the list. I will include the attachments in the following emails. Hi Antonio, Thanks for the quick reply. I modified the program (as you suggested - attached). When I start the program and the dlg:show calls the resizematrix

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Antonio Scuri
Hi, I didn't check all your calculations, but did you noticed that when the dialog is resize you do the FitMat* twice? When MatA is resized, you compute both, then MatC is also resized and you compute both again. I think it would more interesting to set the size only of the respective metri

Re: [Iup-users] difficulty understanding sizing behavior

2015-06-17 Thread Milind Gupta
I think the problem may be occurring because of the following which I don't understand: I have a iuptabs control that starts off with a size of 776x361 clientsize (which is the same as either matrix rastersize.) I have 2 matrix controls in the 2 tabs and I resize its rows and columns as follows: