Page 6 of 6

Re: hiding 1st column of table field

Posted: Wed Dec 07, 2022 9:57 pm
by bn
stam wrote: Wed Dec 07, 2022 9:54 pm Thanks for the insight Bernd - it seemed to work exactly as planned as it was, but I hear your warning - and will keep in mind for the future...
Stack above updated with your correct code.
It worked until you entered "12" into the field. It would hide columnn 1 and 2 without wholematches.

Kind regards
Bernd

Re: hiding 1st column of table field

Posted: Wed Dec 07, 2022 11:38 pm
by jiml
Jim, in your initMe handler add a line

set the leftMargin of me to 7

which approximates the default for table fields and was the spacing I was looking for. Now try hiding various columns. Column 1 is the only 1 that won't be fully hidden
Setting the padding could help with that. Try:

Code: Select all

go url "https://netrin.on-rev.com/misc/HideAnyColumn_V3.livecode"

Re: hiding 1st column of table field

Posted: Thu Dec 08, 2022 4:31 pm
by marksmithhfx
jiml wrote: Wed Dec 07, 2022 11:38 pm Setting the padding could help with that. Try:

Code: Select all

go url "https://netrin.on-rev.com/misc/HideAnyColumn_V3.livecode"
Hi Jim,

That's much better. I would say you have officially found a workaround that requires only modifying column margins and cell padding on the table. Well done!! (It's not exactly the same as an unmodified table, but some may find it even more aesthetically pleasing so you can't argue with that).

Cheers,
Mark