Please can anyone help me on this one.
I have a get object and hide object problem with my push buttons.
At the start of my program i have hidden the push buttons on the form
THIS WORKS O.K
FrmHideObject( form, FrmGetObjectIndex( form,OrderAPushButton ) );
FrmHideObject( form, FrmGetObjectIndex( form,OrderBPushButton ) );
FrmHideObject( form, FrmGetObjectIndex( form,OrderCPushButton ) );
Later in the program in one of my forms, i have called the pushbuttons by
clicking on a different push button, also the push button that is clicked on
is hidden as well as a few other push buttons on the form this is done by
if(ctrlID==Order1PushButton)
{
/*show push buttons*/
FrmShowObject( form, FrmGetObjectIndex( form,OrderAPushButton ) );
getObject( form,OrderAPushButton );
FrmShowObject( form, FrmGetObjectIndex( form,OrderBPushButton ) );
getObject( form,OrderBPushButton );
FrmShowObject( form, FrmGetObjectIndex( form,OrderCPushButton ) );
getObject( form,OrderCPushButton );
THERE ARE MORE PUSHBUTTONS TO BE SHOWN----
/* Hide pushbuttons*/
FrmHideObject( form, FrmGetObjectIndex( form,Order1PushButton ) );
FrmHideObject( form, FrmGetObjectIndex( form,Order2PushButton ) );
FrmHideObject( form, FrmGetObjectIndex( form,Order3PushButton ) );
MORE PUSHBUTTONS TO BE HIDDEN-----
This works fine when only using the code to hide 3 or 4 push buttons or
displaying 1 or 2 push buttons, if try to hide more than this or show more
than this, it says object cannot be found on form.
All is o.k in constructor, i have grouped them , but not coded them as a
group as i could not get it to compile in codewarrior.
I don't think it matters if they are grouped anyway.
I am using codewarrior6 which i know has a few bugs.
Does anybody know why this is happening or what i am doing wrong.
Thanks
adam
______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/