> From: adam davies
>
> I have a very strange problem with showing my hidden push buttons.
> I have hidden eight pushbuttons on my form as shown below, The
> code has been
> cut and paste 8 times to hide the eight buttons ranging from A to H.
> This is O.K
> But when it comes to dispalying them by selecting a different push button
> called One it will only work for up to six push buttons, anything
> over this
> and a get error.
>

I don't really have the answer to your problem, but you've posted this
question so many times, I guess you're desperate.  So, I'll tell you what
little I do know.

1. The following code works for me, displaying 8 push buttons that were
previously hidden:

// in MainFormHandleEvent...
case ctlSelectEvent:
  frmP = FrmGetActiveForm();
  if ( eventP->data.ctlEnter.controlID == MainClickMeButton )
  {
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainAPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainBPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainCPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainDPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainEPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainFPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainGPushButton));
    FrmShowObject(frmP, FrmGetObjectIndex(frmP, MainHPushButton));
    handled = true;
  }
  break;

2. On any Palm OS < 3.2, FrmHideObject doesn't set the usable bit false like
it should, so you have to do that yourself (just before calling
FrmHideObject).

What is the precise error that you get when you try to show 8 push buttons?


-- 
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