Yes, I've done this when I'm manually changing the popup trigger label on the fly, but the scary part is that the label isn't truncated to it's length in the resource, it's truncated to the length originally display when the form is first painted. If I pick the longest item from the list and swap to another form and back, it's fine (almost). If I pick the shortest item and change forms and come back it truncates the other labels. So it's something about the way the form is managed while the app is running.
More importantly, even when it's not truncating I've noticed that the right-align logic isn't working. All labels are being shown using the original size of the trigger - original being whatever was in the trigger when the form loaded. The other thing that concerns me is that the Debug PalmSIm doesn't present this problem, only the release PalmSim and the device. ----- Original Message ----- From: "Dave Lippincott" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, July 02, 2003 1:08 AM Subject: Re: Popup label being truncated > Make the popup trigger so it will be initialized with the max # of > characters you plan to display. Then when you initialize your app, update > the trigger's label with what you require. Then FrmDrawForm would no longer > autosize the trigger too small. Looking back at some of my projects, this > is what I've done to with my popup triggers. There was a good reason, I > just can't remember why this early (only 1/4 the way through my 1st cup this > morning). > > ----- Original Message ----- > From: "Chris Tutty" <[EMAIL PROTECTED]> > To: "Palm Developer Forum" <[EMAIL PROTECTED]> > Sent: Tuesday, July 01, 2003 1:23 AM > Subject: Popup label being truncated > > > > Hi, > > > > OK- I've got no idea what I'm doing wrong, although I'm obviously > > confusing PalmOS somehow. > > > > My problem is that a popup trigger label is being truncated to the size > > of the original label (ie, the size of the label when the form was first > > displayed) when I call FrmDrawForm. > > > > If I comment out the FrmDrawForm calls the popup label looks fine, > > and I could rewrite all of my code so that I only redraw specific controls > > and not the whole form (as I notice the Memo sample does) but I'm a > > little confused as to why FrmDrawForm would do this. > > > > The other confusion is that this doesn't occur on the debug PalmSim, > > only on the release PalmSim and the device (a Tungsten, and possibly > > other PalmOS 5 devices - I'm not doing the hardware testing). > > > > I'm returning false from the event to allow PalmOS to do it's thing and, > > as I say, it all seems ok if I don't redraw the form. As far as I can > tell > > I'm not modifying the control properties after the popup has completed. > > The popup list is populated from a resource string list, which all seems > > to work ok. > > > > I don't like coding around this without knowing if it's a symptom of > > a deeper problem so I'd appreciate any advice people can offer. > > > > 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/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
