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
combobox的style 设成csDropDownList 。 设置了没有见 Frame 被下拉出来!!!combobox 怎么跟 Frame 联系起来?
若为前者你将其combobox的style属性改为 csdropdown ,试试看。
若为后者没用过不过你可以将 combobox的一个属性 'PopupMenu'改为 frame窗体中的某个属性试试看。
在下拉列表框(Combobox) 点一下, Frame 就被下拉出来---这个怎么看都是“style 设成csDropDownList”,如果是按键盘,那么设置AutoDropDown=true还是你的意思是要combobox一直处于弹出下拉框的状态?
楼主描述问题要尽量清晰一些
打个比方 button 和 PopupMenu1 有关系吗?
把 Button 的 popupmenu 属性设置为 你的 popupmenu1
右键 Button 你就会看到 Popupmenu1 就弹出来了。 Frame 和 combobox 就是和这同样的道理! 我怎么说的不清楚拉!?
去找一个看看源代码
你回答很正确! 这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