You need to open your application database explicitly with the dmModeReadWrite flag.  
The OS opens it read only, so if your trying to write to it with only the OS open, you 
won't be able to save anything.

After you open it explicitly, you'll probably want to use DmGet1Resource to access any 
new resources that you add...

Kevin

-----Original Message-----
From: Massimo Penta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 7:24 AM
To: Palm Developer Forum
Subject: custom form help


Hi
I'm trying to generate a custom form help (i.e. the help text is part of
my record and depends on the displayed record). I've tryed several
things, but without success:
1) use a fixed string resource as the form helpID (the classical stuff)
and edit it at runtime. Fails because the application database (my PRC)
is in read-only mode. Is there any way to change that attrib when
buiding the PRC in CW8?
2) try to generate a 'tSTR' resource at runtime and attach it to my app
resource DB. Same problem.

So I'm thinking about another solution: create another form with a non
editable text field in it and a done button; set the helpID in the
previous form to 0 (this erases the help icon on the form: the rounded
'i' in top right corner), draw the help icon programatically when
loading the form, and trap a help icon tap in the form event handler.
But I have some questions:
1) how do I draw the help icon to advice the user that some help is
available. Is there any caracter in some font that does it, or a bitmap
resource with a known ID?
2) Since a tap on the help icon doesn't generate any particular event, I
assume i must capture a penDownEvent within the icon area, but what's
its position and extent?

Or, any other suggestion is welcome. Thanks,
Massimo


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

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