我以前做过 在下拉列表框(Combobox) 点一下, Frame 就被下拉出来, 我以前好像记得 好像是 combobox 控件(也许是三方的COMBOBOX) 有个属性 好像是 "Popup...." 把它设置为 Frame 就可以了。可是现在我 很努力的想也想不起来是怎么做了? 请各位帮忙。

解决方案 »

  1.   

    combobox的style 设成csDropDownList
      

  2.   

    不对呀。
    combobox的style 设成csDropDownList 。 设置了没有见 Frame 被下拉出来!!!combobox 怎么跟 Frame 联系起来?
      

  3.   

    你们不是不知道设什么是 Frame 吧?  他是一个窗体。
      

  4.   

    具体意思不太清啊 老大,是将 combobox点击向下的按钮可显示滚动的选项,还是怎么在把frame拉下来???
    若为前者你将其combobox的style属性改为 csdropdown ,试试看。
    若为后者没用过不过你可以将 combobox的一个属性 'PopupMenu'改为 frame窗体中的某个属性试试看。
      

  5.   


    在下拉列表框(Combobox) 点一下, Frame 就被下拉出来---这个怎么看都是“style 设成csDropDownList”,如果是按键盘,那么设置AutoDropDown=true还是你的意思是要combobox一直处于弹出下拉框的状态?
      

  6.   

    很不解combobox和Frame有什么关系
    楼主描述问题要尽量清晰一些
      

  7.   

    怎么没有关系?
    打个比方 button 和 PopupMenu1 有关系吗?
    把 Button 的 popupmenu 属性设置为 你的 popupmenu1
    右键 Button 你就会看到 Popupmenu1 就弹出来了。 Frame 和 combobox 就是和这同样的道理! 我怎么说的不清楚拉!?
      

  8.   

    有空你门去看一下 速达那个软件 她们的 Combobox 就是点一下 就下拉一个 Grid 表格处理,里面有多列 titile 。是你们没有见识吧? 说我没说清楚。
      

  9.   

    devexpress有dxPopupEdit、cxPopupEdit,
    去找一个看看源代码
      

  10.   

    sdzeng(大头鸟),thanks。
    你回答很正确! 这100分给你。问题解决。=================================================
    Eric W. Carman [Apr 25 2002, 17:11]
    I have used the PopupEdit and a dxTreeList to create a popup "combo box" for
    my application.I have assigned images to the various nodes in the treelist and other
    dropdowns on my form.However, I don't see how to place the appropriate image in the popupedit
    window after the user has made their selection.  For a normal combo box, I
    use the ownerdraw features.  However, I don't see any owner draw events for
    the TdxPopupEdit control.Is there a way to do this?  The control looks pretty bad on my screen being
    the only one without a graphic.Best Regards,
    Eric W. Carman===========================
    Alex Danvy - DX-Squad [May 1 2002, 20:41]
    Hi Eric,I think you will have to create a custom editor with owner draw features.
    Create a TCustomdxPopupEdit and TdxDropDownEditViewData descendant override
    the DrawClientArea, GetViewDataClass and DrawClientArea methods.--Alex Danvy - DX-Squad
    [email protected]
    "Eric W. Carman" <[email protected]> a écrit dans le message
    de news: 3cc82ee8$1@winnt420...
    I have used the PopupEdit and a dxTreeList to create a popup "combo box" for
    my application.I have assigned images to the various nodes in the treelist and other
    dropdowns on my form.However, I don't see how to place the appropriate image in the popupedit
    window after the user has made their selection.  For a normal combo box, I
    use the ownerdraw features.  However, I don't see any owner draw events for
    the TdxPopupEdit control.Is there a way to do this?  The control looks pretty bad on my screen being
    the only one without a graphic.Best Regards,
    Eric W. Carman