Re: How to resize the columns of a datagrid?

2015-08-04 Thread Sri
You may want to try this: 1. Save the original width of datagrid in a custom property cOldWidth. 2. In the datagrid script, handle resizeControl: on resizeControl local tFraction put (the width of me / the cOldWidth of me) into tFraction repeat for each line tLine in the dgProp[columns] of me

RE: How to resize the columns of a datagrid?

2015-08-04 Thread Bob Sneidar
There's a dgprop for it. Check documentation. Sent on the new Sprint Network from my Samsung Galaxy S®4. Original message From: Tiemo Hollmann TB Date:08/04/2015 6:14 AM (GMT-08:00) To: LiveCode User Liste senden Subject: How to resize the columns of a datagrid? Hello, I

How to resize the columns of a datagrid?

2015-08-04 Thread Tiemo Hollmann TB
Hello, I want to resuze a datagrid table by script depending oft he window size. When just resizing the datagrid (expanding it) an additional column is added to the datagrid. Is there an easy way to resize all columns proportional to the new width of the datagrid? Thanks Tiemo

AW: How to resize the columns of a datagrid?

2015-08-04 Thread Tiemo Hollmann TB
Hi Bob, are you thinking of dgColumnIsResizable? It allows the user to resize manually the column width. Or do you have another property in mind? Tiemo -Ursprüngliche Nachricht- Von: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] Im Auftrag von Bob Sneidar Gesendet:

Re: How to resize the columns of a datagrid?

2015-08-04 Thread Klaus major-k
Hi Tiemo, Am 04.08.2015 um 17:10 schrieb Tiemo Hollmann TB toolb...@kestner.de: Hi Bob, are you thinking of dgColumnIsResizable? It allows the user to resize manually the column width. Or do you have another property in mind? I’m obviously not Bob, but I think he was more thinking of

Re: How to resize the columns of a datagrid?

2015-08-04 Thread Mike Bonner
If you want proportional, all the same size relative to each other, something like this in the card script should work. on resizestack set the rect of group 1 to the rect of this card -- set your dg group to whatever new size you want resizecol end resizestack on resizecol put the