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/
