A quick quick look makes me think it is a bug in the PACE code. An updated shadow
value sneaking its way back into the from on FrmDrawForm.
If you make a no left anchor pop up trigger connected to a list with static contents
the pop up trigger always returns to its initial position on FrmDrawForm. It is not
the trigger's label's byte length, but the initial left anchor point that is being
preserved. I can offer you a work around right now and I will take a longer look at it
for a kb article in a little while.
As normal, make sure the label is big enough (byte wise) for your biggest label...
Handle the popSelectEvent yourself and call CtlSetLabel on the pop trigger.
case popSelectEvent:
Char* selectionTextP = LstGetSelectionText(eventP->data.popSelect.listP,
eventP->data.popSelect.selection);
CtlSetLabel(eventP->data.popSelect.controlP, selectionTextP);
handled = true;
break;
This seems to work on my little sample.
-Ezekiel Sanborn de Asis
PalmSource Developer Support
-----Original Message-----
From: Chris Tutty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 6:57 PM
To: Ezekiel Sanborndeasis
Subject: Re: Popup label being truncated
Attached is a modified standard app that demonstrates the
problem. Debugging this under the Release PalmSim (v5.1,
haven't tried v5.2) should show the problem.
Give me a yell if you can't make sense of this.
Chris Tutty
Director
Izyn Technologies Ltd
+64 6 355 5695
----- Original Message -----
From: "Ezekiel Sanborndeasis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 10:36 AM
Subject: RE: Re: Popup label being truncated
Chris,
If you want to send me a piece of sample code I will take a look at it for
you.
-Ezekiel Sanborn de Asis
PalmSource Developer Support
>From: "Chris Tutty" <[EMAIL PROTECTED]>
>To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>Subject: Re: Popup label being truncated
>Date: Wed, 2 Jul 2003 14:18:54 +1200
>X-Virus-Scanned: by amavisd-new
>List-Unsubscribe: <mailto:%%email.unsub%%>
>List-Owner: <mailto:[EMAIL PROTECTED]>
>Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]>
>X-Message-Id: <[EMAIL PROTECTED]>
>Sender: [EMAIL PROTECTED]
>X-Palm-Dev-Forum: palm-dev-forum
>x-precedence:bulk
>
>OK,
>
>I've used FrmGetObjectBounds to determine the size of the
>popup trigger at different times and the following occurs (as
>I said before, not on the debug PalmSim, only on the Release
>PalmSim and the physical device).
>
>During form init:
>- label width is 42 pixels (from the resource text)
>- CtlSetLabel to point the label to the text of a list item
>- label width is 55 pixels (from the list item text)
>
>tap the popup and change the item, displays longer label
>
>tap a control that calls a redraw function
>- at function start label width is 68 pixels (the changed list text)
>- FrmDrawForm, label is truncated
>- label width is 55 pixels (from the list item text)
>
>Any ideas as to why this is happening?
>
>Chris Tutty
>
>
>--
>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/