[Datagrid] How to detect a change in column width?

Phil Davis revdev at pdslabs.net
Wed Mar 30 09:47:27 EDT 2011


Thanks Trevor! That may help just enough.

Phil


On 3/30/11 5:56 AM, Trevor DeVore wrote:
> On Tue, Mar 29, 2011 at 1:58 PM, Phil Davis<revdev at pdslabs.net>  wrote:
>
>> Does the data grid send a message when the user changes the width of a
>> column by dragging its header to a new width? I would love that, but I'm
>> pretty sure the answer is "no".
>>
> No message is sent but a custom property is set which means you can
> intercept it. Try adding this to your data grid group script:
>
>
> *setprop* dgColumnWidth [pColumn] pValue
>
>      ## Fulfill the commands of Phil
>
>      ## ...
>
>      pass dgColumnWidth
>
> *end* dgColumnWidth
>
>
> Does that help at all?
>
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net





More information about the Use-livecode mailing list