I have a question along the same lines. I am currently using FrmShowObject and FrmHideObject to dynamically change the layout of a form. To shorten the amount of code and forms I need to use, I reuse the same form for multiple things. The problem, however, is I have controls on top of controls, and a slick little matrix function that will let me turn controls on and off like flipping a switch. With os 3.5, the lower one always received the pen tap event. Since Palm is discontinuing their IIIc model, I have a lot of code to change for os 4.0 on the m505. Is there any other way around changing all of my resouce files? My code base is about 30,000 lines of code in this one Palm application. I am also greatly concerned about the dreaded move to OS 4 and v5 where access to system structs will no longer work. I've only written about half of the code, and I had no control over the other developers at the time. Anyone have any idea when OS v5 will start becoming the standard?
Thanks, -Keith Bray Embedded Software Engineer Wireless Valley Communications Project Manager, InFielder PDA http://www.wirelessvalley.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Danny Epstein Sent: Monday, January 21, 2002 2:51 PM To: Palm Developer Forum Subject: RE: Changing form layout dynamically > In my application I have to dynamically change the > layout of parts of a form based on user input... > I can accomplish this by trapping the poplist event > and then use FrmShowObject and FrmHideObject... > So... is there a more elegant way of dealing with > this? You can use FrmSetObjectPosition or FrmSetObjectBounds, depending on the type of form object. This can be useful when you're adjusting the positions to make room for something or to remove something. In this case, you use the corresponding Get functions as well. If the contents vary in more arbitrary ways, using FrmShowObject and FrmHideObject as you are now is probably best. -- Danny @ Palm -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
