formattedWidth
Peter Haworth
pete at lcsql.com
Thu Jul 10 21:32:07 EDT 2014
OK, I surrender! I think I now understand my confusion. The
formattedWidth of a card is measured from the left edge of the leftmost
control to the right edge of the rightmost control. But the distance from
the left edge of the card to the leftmost control isn't included so using
formattedwidth to size the card will never work unless the leftmost control
is at the left edge of the card.
I have it working now by using the formattedrect property as the basis for
getting the width measurement I need.
Pete
lcSQL Software
On Jul 10, 2014 5:04 PM, "J. Landman Gay" <jacque at hyperactivesw.com> wrote:
> So it's "all the visible parts of all objects". If some of an object is
> offscreen, that part isn't visible.
>
> Beaten but not yet dead. ;)
>
> On 7/10/2014, 5:52 PM, Scott Rossi wrote:
>
>> Actually, the dictionary entry is correct. The property gets the width of
>> a rectangle that encompasses all visible objects, not the rect of the
>> objects.
>>
>> Horse = beaten yet? :-)
>>
>> Regards,
>>
>> Scott Rossi
>> Creative Director
>> Tactile Media, UX/UI Design
>>
>>
>>
>>
>> On 7/10/14 2:49 PM, "Peter Haworth" <pete at lcsql.com> wrote:
>>
>> Yes, I think the problem is with the dictionary entry for formattedWidth
>>> since it claims the formattedWidth of a card is the rectangle that
>>> contains
>>> all its visible objects, which is not true.
>>>
>>> Pete
>>> lcSQL Software <http://www.lcsql.com>
>>> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
>>> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
>>>
>>>
>>> On Thu, Jul 10, 2014 at 12:27 PM, Scott Rossi <scott at tactilemedia.com>
>>> wrote:
>>>
>>> FormattedWidth and height are purely width and height measurements.
>>>> They
>>>> don't provide object any position information.
>>>>
>>>> For object positions, use either the rect or formattedRect
>>>> (cards/groups)
>>>> properties.
>>>>
>>>> Regards,
>>>>
>>>> Scott Rossi
>>>> Creative Director
>>>> Tactile Media, UX/UI Design
>>>>
>>>>
>>>>
>>>>
>>>> On 7/10/14 12:12 PM, "Richmond" <richmondmathewson at gmail.com> wrote:
>>>>
>>>> I cannot for the life of me understand why the formattedWidth of the
>>>>> card does not correspond
>>>>> to item 1 of the loc of the 'furthest West' control, or its LEFT.
>>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>> _______________________________________________
>>> 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
>>>
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
>
> _______________________________________________
> 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
>
More information about the use-livecode
mailing list