----- Original Message -----
From: "Edward P. Ross" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Wednesday, March 24, 2004 3:57 PM
Subject: fnav / Constructor
> >From looking at the docs/app it appears that there's no built-in support
in Constructor for 'fnav'. Is that true? If so, is there a way to
implement the 'fnav' resource while still using Constructor?
>
I asked this question before, and Ben gave the answer. You can find it in
the archive, but here is what I have in my app
1. Creat a file .r and go to the Settings to map the extension r with
PalmRez
2. This file .r has the header that looks like :
#define hsNavFlags defaultStartStateValue = 0x00000000, \
objectFocusStartState = 0x00000001, \
appFocusStartState = 0x00000002
#define hsNavObjectFlags none = 0x0000, \
skip = 0x0001, \
forceInteraction = 0x0002, \
bigButton = 0x8000
type 'fnav' {
unsigned integer = 1; /* resource version */
unsigned integer = $$Countof(ObjectArray);
unsigned integer = 20; /* size of header */
unsigned integer = 8; /* size of list elements */
unsigned longint hsNavFlags; /* navigation flags */
unsigned integer; /* ID of initial focus object */
unsigned integer = 0; /* hint ID of jump to object */
unsigned integer = 0; /* hint ID of bottom left object */
fill word;
array ObjectArray {
unsigned integer; /* ID of object */
unsigned integer hsNavObjectFlags; /* object flags */
unsigned integer; /* ID of above object */
unsigned integer; /* ID of below object */
};
};
resource 'fnav' ( MainForm )
{
objectFocusStartState,
MainFileTestButton,
{
MainFileTestButton, 0, 0, MainInputTestButton,
MainInputTestButton, 0, MainFileTestButton, MainLoopTestButton,
MainLoopTestButton, 0, MainInputTestButton, MainStopButton,
MainStopButton, 0, MainLoopTestButton, 0
}
};
Vu
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/