-----BEGIN PGP SIGNED MESSAGE-----

Joel Stanley wrote:

 > Hi folks, I'm trying to create a button bar across the top of all of my
 > forms, using pushbutton objects. Let's just say, for the moment, that
 > there are three pushbuttons -- one form form 1, form 2, and form
 > 3. Pushing on the button for form 2 or form 3 while on form 1 switches
 > to one of those forms.
 >
 > Now, my question is this: since those pushbuttons are form resources,
 > they must be duplicated on each form. Is there any clean way of sharing
 > resources between forms using pilrc? I've used the same resource IDs in
 > each form, which generates some warnings, but seems to work. However,
 > I'm having some problems with other resources showing up on all three
 > forms now that did not occur before.


Any method for sharing things between forms would be more complicated than
just duplicating them on each form. As for the warnings you're seeing, you
can't have them all with the exact same ID. Each one should have it's own
unique ID. The Codewarrior constructor assigns forms each an ID starting
at 1000, and going up, for each new form, 1100, 1200, 1300, etc. Each
object on the form gets an ID, numbering up from 1.

For example, buttons on the first form have IDs of 1001, 1002, 1003. On
the 2nd form, 1101, 1102, 1103, etc.. You should use this type of scheme.

[...]

 > Thanks in advance,
 > -j

- --
Brian Mathis
Direct Edge
http://www.directedge.com

-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0

iQEVAwUBOk6hV7Go2cj8O3o1AQFV2Af/Vut5kTJJV7rKgtyFkwowkeLe2rBZZkYJ
R81to+VT6WpIlSyvx9XhPdXQrCmQ1e8FzPEbrPBDomV8nv8BRtpS6Jz8WiYycmmz
V6Ei0SY3i9lDFnDFBOXyj5haWVwoE7/mG5QFDQ8dLP5B76CNFlYWalE353+ZDtZB
WL+yHRo8ZbytiJOsv1BsXG3WEgOoSZ4tW3uGO7bBjET3887ssMw+osm3KKHcqJOo
BPJ55INZSKf2R0nS1D2310FrNL1rhvWhjdXi8vGekKWlAkk9X73OV3tzVb6t0KpI
pwu/VOcMZF43Bn9UCc1oF81xjcOBvOdCOrfC+XqbpgvJopNWCBuulA==
=yV/y
-----END PGP SIGNATURE-----


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to