查看完整版本: 急求翻译!

kav2376 2006-5-5 17:02

急求翻译!


kav3276 wrote:
> Can I make a program run in 480*320 with OnboardC ?

Yes.  You need to call FrmSetDIAPolicyAttr() see:

[url]http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/Form.html#1085883[/url]

with the value frmDIAPolicyCustom before the form is drawn the first
time.  Then the user will be able to hide or show the Dynamic Interface
Area (DIA) at will.

Note that before you can do this, you will need to look up the
definitions for FrmSetDIAPolicyAttr(), PINS_TRAP, sysTrapPinsDispatch,
pinFrmDIAPolicyCustom and for frmDIAPolicyCustom in the PALM SDK header
files, and copy them into your source code first, since the default
onboardheader.h does not define them for you.

--
The Gadget Man
----------------------------------------------
"I reject your reality and substitute my own!"



咕咚 2006-5-6 06:26

可以,你需要在第一次绘制 form 之前调用 FrmSetDIAPolicyAttr() ,参见:
[url]http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/Form.html#1085883[/url]

调用的时候使用 frmDIAPolicyCustom  参数 (咕咚注:这个函数原形是 Err FrmSetDIAPolicyAttr (FormPtr formP, UInt16 diaPolicy) ).这样用户才可以按自己的意愿在这个form里显示或关闭动态手写区。

注意你做这些之前要把 FrmSetDIAPolicyAttr()、PINS_TRAP、sysTrapPinsDispatch、pinFrmDIAPolicyCustom 、frmDIAPolicyCustom 这些东东从 Palm SDK 的头文件里弄出来定义到你的源文件里,因为 OnboardC 同学缺省的 onboardheader.h 是木有这些 DEF 的

--------

这段话挺浅显的,他说的是 palm 家的 DIA ,如果你要兼容 sony clie 的 VSK那就是另回事了,那样的话你要看新版 sony SDK 的 companion (汤坛有旧版英文的)并且研究 collapseutil 范例

要弄懂 DIA ,最好还是看看 palm sdk 的 references 和 companion 然后弄懂 CollapseUtil 范例是怎么实现的,这个例子的实现过程虽然不是最精简、高效和兼容性最强的,但支持动态手写区已经掉掉有鱼了 :X: 要求不高的话直接抄就可以:Y:

kav2376 2006-5-6 20:42

是这样!

无限感激!

页: [1]
查看完整版本: 急求翻译!