增加一下popuptrigger并给它一个ID,然后增加一个list并给它一个ID,list的usable 改为false,然后增加一个popuplist,popuplist的ListID为list的ID,ControlID为 popuptrigger的ID。
我的rcp文件中:
关于组合框涉及的控件内容:
POPUPTRIGGER "" ID RegSexPopTrigger AT (52 34 82 11)
POPUPTRIGGER "" ID RegAgePopTrigger AT (55 48 77 10)
POPUPTRIGGER "" ID RegAimPopTrigger AT (54 93 62 10)
LIST "妹妹" "哥哥" "不介意" ID MainSexList AT (61 37 53 35) VISIBLEITEMS 3 NONUSABLE LIST "16-18" "19-22" "23-26" "27-30" "30-40" "40以上" "不介意" ID MainAgeList AT (63 50 51 79) VISIBLEITEMS 7 NONUSABLE LIST "诚心交友" "拍拖对象" "情人之爱" "爱情婚姻" "聚会出游" "拍拖对象" "一夜
爱情" ID MainAimList AT (62 96 52 79) VISIBLEITEMS 7 NONUSABLE POPUPLIST ID RegSexPopTrigger MainSexList
POPUPLIST ID RegAgePopTrigger MainAgeList
POPUPLIST ID RegAimPopTrigger MainAimList
cw9.1+PilRc Designer2.6.0 我使用POL(c++)编程,程序片段如下: CCustomTrigger m_popSex; CCustomTrigger m_popAge; CCustomTrigger m_popAim; CSimpleListCtrl m_lstSex; CSimpleListCtrl m_lstAge; CSimpleListCtrl m_lstAim;
m_popSex.Attach(RegSexPopTrigger, MainSexList); m_popSex.SetItemCount(3);
m_popAge.Attach(RegAgePopTrigger, MainAgeList); m_popAge.SetItemCount(7);
m_popAim.Attach(RegAimPopTrigger, MainAimList); m_popAim.SetItemCount(7);
三个组合框都只显示每一项序号,三个框分别即0...3,0...6,0...6 但是每一个组合框都显示不出内容来?百思不得其解! 谢谢先!
_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
