resizing field editor in datagrid

Monte Goulding monte at sweattechnologies.com
Tue Mar 5 21:04:33 EST 2013


Never mind:

on UpdateRow pFieldEditor
   set the rect of graphic "Background" of me to the rect of pFieldEditor
   set the rect of me to the formattedRect of me
   put the uScriptLocal["sTableObjectsA"] of me into tTableObjectsA
   repeat for each line tControl in tTableObjectsA["all row controls"]
      delete word -2 to -1 of tControl -- of me
      put tControl into tControlA[the dgIndex of tControl]
   end repeat
   put the bottomLeft of me into tTopLeft
   repeat for each item tIndex in tTableObjectsA["current"]["indexes"]
      if tIndex > the dgIndex of me then
         set the topLeft of tControlA[tIndex] to tTopLeft
         put the bottomLeft of tControlA[tIndex] into tTopLeft
      end if
   end repeat
end UpdateRow

On 06/03/2013, at 11:42 AM, Monte Goulding wrote:

> Hi Folks (hopefully Trevor)
> 
> I have a custom field editor that resizes as you type to fit the text however every time it resizes I need to change the row height and shift subsequent rows down. Has anyone done this. From the looks of things I may need to use the uScriptLocal getprop to get some of the script locals and then resize the row and shift the other row groups down proportionally. Is that about right?
> 
> Cheers
> 
> --
> M E R Goulding 
> Software development services
> Bespoke application development for vertical markets
> 
> mergExt - There's an external for that!
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!




More information about the use-livecode mailing list