It gets even more complicated if we try to delete lines. Added some delete
buttons. See the 4-5 button. It ends up with black areas on the grid. Any
suggestions how to fix this and delete properly?

Thanks,
Milind

On Fri, 4 Aug 2023 at 12:17, Milind Gupta <milind.gu...@gmail.com> wrote:

> Hi Antonio,
>            Please see the attached example.
>
> * The matrix has some merged cells.
> * I have a few buttons below the matrix to insert rows at certain points
> in the matrix
>
> It seems the new row added merges to the cells that are merged in the next
> row.
>
> For the button "1|2" (Insert row between rows 1 and 2) I tried to work
> around it by first splitting the cells in the next row and then adding a
> line and then tried to merge the cells of the next row back again.
>
> The row insertion is successfully created with no merging to the next row.
> But it does not remerge the cells of the next row back. Please advise how I
> can get this to work.
>
> Thank you,
> Milind
>
>
> On Tue, 23 May 2023 at 05:52, Antonio Scuri <antonio.sc...@gmail.com>
> wrote:
>
>>   I think you could simply move the merged cell attributes from one row
>> to the other. When you insert the new row the attributes keep pointing to
>> the old row.
>>
>> Best,
>> Scuri
>>
>> Em dom., 21 de mai. de 2023 às 03:23, Milind Gupta <
>> milind.gu...@gmail.com> escreveu:
>>
>>> Hi,
>>>          I have a IUP Matrix where some cells are merged with some cells
>>> on the next row. When I try to add a line before the row the rows added get
>>> the cells in the merged with the cells that were merging before.
>>>
>>> For example if I have Row 2 Col 1 merged with Row 3 Col 1 and then if I
>>> add a row before row 2 then the new Row 2 Col 1 cell is merged with the Col
>>> 1 cell of the 2 rows below i.e. now we have Row 2,3,4 Col 1 cells merged.
>>>
>>> The workaround I see right now is the split all the merged cells in Row
>>> 2 and then insert a row before row 2 and redo the merges. Is there a better
>>> way?
>>>
>>> Thanks,
>>> Milind
>>> _______________________________________________
>>> Iup-users mailing list
>>> Iup-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>>
>> _______________________________________________
>> Iup-users mailing list
>> Iup-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>

Attachment: matrix_exp.lua
Description: Binary data

_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to