Regards,
I must confess that knowing to program in Palm has been a really tough
experience for me mostly because of the fact that there aren't much
examples available to learn from (and adding to it that I come from a
Java programming environment where in a matter of seconds you find
tons of examples for everything). I am experimenting with hiding
controls and I am getting an error, I have no idea where to call these
methods from, I have the following code and I am getting a memory
error (The lines of interest are the invoke of CtlHideControl and
FrmHideObject):
static Boolean CapurroFormHandleEvent(EventType* pEvent)
{
Boolean handled = false;
FormType* pForm;
switch (pEvent->eType) {
case frmOpenEvent:
pForm = FrmGetActiveForm();
// CapurroFormInit(pForm);
FrmDrawForm(pForm);
CtlHideControl(GetObjectPtr(PuntajeField));
FrmHideObject(GetObjectPtr(PuntajeLabel),
FrmGetObjectIndex (pForm,
PuntajeLabel));
handled = true;
break;
case ctlSelectEvent:
switch(pEvent->data.ctlSelect.controlID) {
case CalcularBoton:
handled = true;
break;
case RegresarBoton:
FrmGotoForm(MainForm);
handled = true;
break;
default:
break;
}
break;
default:
break;
}
return handled;
}
On 10/5/06, Jorge Vasquez <[EMAIL PROTECTED]> wrote:
Hi,
Does anybody has an example of functions that make dissappear form
elements with scrolling actions.
Regards,
Jorge Vásquez
On 10/2/06, Jorge Vasquez <[EMAIL PROTECTED]> wrote:
> Thanks Doug,
> Repeating buttons are the ones that appear with a top and bottom
> arrow. I have seen them in lots of apps. They are mentioned in
> Lonnon R. Foster´s excelent book: "Professional Palm OS Programming
> (pag 22)" and they also appear in PODS´ resource editor. I probably
> didn´t made myself clear, I want to design a form that has more input
> fields than can be put into a 160x160 screen so I definitely have to
> use some sort of scrolling mechanism. The most relevant idea here
> isn´t the type of scrolling (both scrollbars and repeating buttons
> achieve this purpose ) mechanism that I end up using but how to
> implement it. I have tried with the resource Editor but its
> impossible so I'm starting to think that the only possibility that I
> have is to generate all the form from code but this is where I am kind
> of lost. I have no idea on how to implement this, how to generate the
> form from code and integrate it with scrolling actions, and show/hide
> elements according to scrolling events sent by the user, how can I
> control the rendering area to assure that it doesn´t exceeds 160x160
> or does somehow Palm takes care of this for me? In general this seems
> to be a very complex issue 'cause believe me, I spent almost half day
> googling for examples without success. If anybody can help me with an
> example or clearing the FUD for me I´ll be really thankful.
>
> Best regards to all,
> Jorge Vásquez
>
> On 10/2/06, Doug Reeder <[EMAIL PROTECTED]> wrote:
> >
> > On Oct 1, 2006, at 6:31 PM, [EMAIL PROTECTED] wrote:
> >
> > > I am using the Palm OS Resource Editor that comes bundled with the
> > > Eclipse PODS to create a form which doesn't fit in the 160x160
> > > screen so I would need to either use a repeating button or a
> > > scrollbar.
> >
> > I'm not quite sure what you mean by "repeating buttons" in this
> > context, but the OS only has support for scrolling text fields, not
> > other controls. Forms can't be larger than 160x160 (excluding any
> > effect from a dynamic input area).
> >
> > It is possible to create the effect of a "multi-page" form by making
> > controls appear and disappear, as, for example, happens in the Sounds
> > application on the Treo 650/700p.
> >
> >
> > --
> > For information on using the PalmSource Developer Forums, or to
unsubscribe, please see http://www.palmos.com/dev/support/forums/
> >
>
>
> --
> Jorge Andres Vasquez
>
> --
> For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
>
--
Jorge Andres Vasquez
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/
--
Jorge Andres Vasquez
--
For information on using the PalmSource Developer Forums, or to unsubscribe,
please see http://www.palmos.com/dev/support/forums/