"Danny Epstein" <[EMAIL PROTECTED]> wrote in message news:77542@palm-dev-forum...
> > I have code in the app to hide the graphic and button if they aren't > > supposed to appear, and reposition/resize all following UI objects. If > > there is a table, the code also removes a row in if the graphic and button > > _are_ supposed to appear. > Interesting problem. You can probably get away with marking the last row of > the table unusable and setting a global variable to one less than the number > of rows returned by TblGetNumberOfRows. Then use this global variable when > you're loading the table rather than calling TblGetNumberOfRows. [...] This is in essence how I solved the problem. Using TblSetRowUsable (usable = false) worked in place of physically decrementing the numRows field in the table structure. > It sounds like you're making the choice of whether to show the graphic and > button at compile time. Yes. Our app needs to be a real chameleon. One source code base needs to be able to support N different feature configurations simultaneously such that N different apps can be produced, all of which need to be able to coexist on the same device at the same time, and each of which has an optimal footprint (i.e., no code for feature X if that feature isn't in that configuration). On top of that, each feature needs to be capable of being slightly different on a configuration by configuration basis. Making this reconfiguration doable at compile time is a first step towards making it all doable at run time. > In that case you could have two table resources with > different positions and sizes. You can't hide a table, but that's not a > problem. Just initialize one of the tables normally and initialize the other > to have no usable rows or columns. It sounds like that would work too. Had I thought of it at the time (a couple months ago), I might've done it that way instead. ;-) Mark Peters -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/
