At 12:00am -0800 00-11-25, Palm Developer Forum digest wrote:
>Subject: RE: DmGetResource on 'tPUT' failing
>From: "Scott Johnson (Bellevue)" <[EMAIL PROTECTED]>
>Date: Fri, 24 Nov 2000 20:34:47 -0800
>X-Message-Number: 33
>
>  > From: Chris Yourch [mailto:[EMAIL PROTECTED]]
>  > What I really want to do is get the width and list id of a popup trigger.
>  > Any ideas on how to do this?
>
>There's no single API call for getting the list ID.  But the code you
>originally posted, with David Fedor's suggested changes, will work.
>
>  > I know the width can be retrieved using an API call. What I need is the
>  > original width as recorded by Constructor.
>
>There's only one width stored in the trigger.

I'm guessing that what Chris wants to know is the width of the 
trigger that was specified in Constructor. For example, this would be 
useful for determining the maximum width of the trigger for text 
truncation.

This width is lost, however, when PalmRez is using the tPUT resource 
to build the form, as it recalculates the width of the control based 
on the control's text.

So I'd suggest setting the control's text to something that gives you 
roughly the same width, or positioning an (unused) gadget behind the 
popup trigger which has the appropriate width.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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

Reply via email to