Thanks Ben, the object I'm trying to measure is a PopupTrigger (it's
explained in my original message, do you want me to repost it?, let me
know).
    I'm not interested in the width of the associated List, because I want
to put a GraphicButton just beside the rigth of that PopupTrigger, whose
width never changes (where as the width of the List does).
    The real problem is that sometimes the text of item selected in the
PopupTrigger (E.g.: a name of a person) exceeds the limits of this and
overlaps my GraphicButton. I tried to fix this ovarlapping using
'CtlDrawControl()' at the end of the form's handler 'popSelectEvent' case.
But it wasn't a solution for me because in some situations I could see in
the form:

    TEXT -> GRAPHICBUTTON -> REMAINING OF TEXT

    It's because of that I want to get the width of the PopupTrigger, to
truncate the text of item selected, when its length exceeds the bounds
(width) of the Popup.

    Thanks in advance.

Ariel A. Ayala
Software Development
----- Original Message -----
From: "Ben Combee" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 2:42 AM
Subject: Re: Width of an object


> At 06:14 PM 4/19/2004, you wrote:
> >     Thanks for the reply. But... I know that the 'extent.x' member of
the
> >structure don't specify the bottom-right corner of the rectangle, if you
are
> >trying to say so. But the problem is, as exposed in my original message,
> >that the function ALWAYS returns the same value, i.e.:
> >
> >         rtObject.extent.x == 59
>
> What kind of object are you measuring?  If you're measuring a field, you
> will always get the full field width, not the width of the actual text.
>
>
> -- Ben Combee, senior DTS engineer, PalmSource, Inc.
>     Read "Combee on Palm OS" at http://palmos.combee.net/
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
>



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to