Problems with the LayoutControl-script of a form datagrid

Fredrik Andersson fredrik at morbug.se
Tue May 12 08:44:41 EDT 2009


Thanks!

Sometimes I'm really blind....

Sorry to have taken up your time with something this trivial.

Regards,

Fredrik

12 maj 2009 kl. 14.32 skrev Trevor DeVore:

> On May 12, 2009, at 3:32 AM, Fredrik Andersson wrote:
>> ...
>>
>> ON LayoutControl pControlRect
>>   local theFieldRect
>>   set the right of field "Rang" to item 3 of pControlRect -10
>>   put the left of field "Rang" of me into theLeft
>>
>> put the rect of field "Namn" of me into theRect
>>   put theLeft -10 into item 3 of theRect
>>   set the rect of field "Namn" of me to theRect
>>
>> ... and three more fields like the one above ....
>>
>>   set the rect of graphic "Background" of me to pControlRect
>>
>> END LayoutControl
>
> Hi Fredrik,
>
> I think you are just missing some 'of me' references in your code.  
> The first line of code:
>
> set the right of field "Rang" to item 3 of pControlRect -10
>
> needs to be:
>
> set the right of field "Rang" OF ME to item 3 of pControlRect -10
>
> Without the 'of me' reference the engine moves the first field it  
> finds named "Rang".
>
> Regards,
>
> -- 
> Trevor DeVore
> Blue Mango Learning Systems
> www.bluemangolearning.com    -    www.screensteps.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list