Page 1 of 1

(RPG)a label above a table

Posted: Wed Nov 20, 2013 2:02 pm
by MegumiSawada
Hi,
IMG_0099Z.jpg
IMG_0099Z.jpg (33.59 KiB) Viewed 5672 times
I've created a formview which has a label above a table.
However there's a gap between the label and table but I don't want to have a gap between them.
Is there anyway to delete this gap?

I've created a table without any border but I put a border around every items.
The label is defined 1 row upper than the table.
Table has no header.

I appreciate your advice...

Best Regards,
Megumi Sawada

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 9:20 am
by MarkDuignan
By default all the cells on a form are spaced out.

The label is in one cell, the table in another - so try LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );

If you still have space you could try setting the padding on the label and table to zero.

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 12:21 pm
by MegumiSawada
Thank you,Mark.

It's better, but still it has a gap.
And when I re-load the formview,the gap become bigger...I don't know why.I'll find out.

If you have any other idea, could you please let me know?
Otherwise I'll tell the customer this.

Best Regards,
Megumi

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 12:42 pm
by MarkDuignan
Can you send me your RPG code?

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 3:06 pm
by MegumiSawada
Hi Mark,

These are my sample code.

Thank you,
Megumi

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 3:28 pm
by MarkDuignan
Try making the table do this:

Code: Select all

     A                                       PADDING: 0
     A                                       INNERPADDING:0         
and make the program do this:

Code: Select all

           LRNG_SetNumProperty('/Form.Padding' : 0 );
           LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );

Re: (RPG)a label above a table

Posted: Fri Nov 22, 2013 4:11 pm
by MegumiSawada
Thank you,Mark!

I was able to have an expected result with making the table with padding and innerpadding zero, and making RPG code to use LRNG_SetNumProperty('/Form.Grid.Cellspacing' : 0 );

Perfect.

Thank you again!
Megumi