At 3:19 AM +0100 14-03-00, Roger Chaplin wrote:
>"Scott L. Johnson" <[EMAIL PROTECTED]> wrote:
>
>> Use only the published Dm API's. If they don't seem to do what you need,
>> post your specific problem to this forum and you should get plenty of useful
>> advice.
>
>I'm still waiting to hear the officially legal, sanctioned, and
>endorsed method of determining the current state of the backlight.
You can't get the state via the Data Manager APIs!
Okay, so you probably knew that your remark was off-topic...
The problem is that "determining the current state of the backlight" is not
well defined. Not all devices have a backlight. You may not want to turn
off the backlight on all devices. (Turn it off on the IIIc for example and
you've got an unreadable screen.)
So the result is there is no platform API to determine the state of "the"
backlight.
If you need this, you can always hack. But if you're hacking, you
shouldn't expect us to make it easy for you! Hacks are, by definition,
unsupported.
The same goes for the data manager. If you mess with unsupported
structures, especially things like DatabaseHdrType, RsrcEntryType, and
RecordListType, your app is likely to break when the OS is updated. That's
why we stopped shipping the private header files. I don't think any of
these data structures actually did change in 3.5, so in fact apps that hack
these structures won't break in this release, but I have a feeling there's
a VERY good chance they'll break in the next one.
--Bob
________________________________________________________________________
Bob Ebert, Consulting Engineer, Palm Computing Europe V: +33 4 9952.4354
77 rue Samuel Morse, 34935 Montpellier Cedex 9 France F: +33 4 9952.4397
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html