Excellent job with very few lines of code!
ReplyOriginally posted by: shanmukh
pls i want these files code
#define PIT_COMBO 0 //PIT = property item type
#define PIT_EDIT 1
#define PIT_COLOR 2
#define PIT_FONT 3
#define PIT_FILE 4
#define IDC_PROPCMBBOX 712
#define IDC_PROPEDITBOX 713
#define IDC_PROPBTNCTRL 714
thanking u,
shanmukh
Originally posted by: Tim Guo
Who can advicse me how to get the data from editable cell on this page, I wamt to use this property page as input window.
Thanks very much
Tim
ReplyOriginally posted by: ruxming
so here is ruxming's modification.
// public:
Any better solution?
My program needs to use ResetContent() to remove all the items.
But when PropertyList's (CButton)m_btnCtrl had already shown,
and after ResetContent(),
if the total items are less then before.
then the button would still remain on the blank of the listBox!!
void CPropertyList::CleanAll() ///[Modify]
{
if (m_btnCtrl)
m_btnCtrl.ShowWindow(SW_HIDE);
ResetContent();
}
// Then has to call CleanAll() instead of ResetContent();
Originally posted by: Philippe Dykmans
Here are a few easy changes that make the control a bit
1) Show the dropdown list of a combobox immediately on
(in propertylist.cpp)
CPropertyList::OnSelchange()
m_cmbBox.ShowDropDown(); // add this line
2) Hide the combobox immediately after selection.
(in propertylist.cpp)
Change the line:
Into:
3) Better creation of the combobox. The combobox should
(in propertylist.cpp)
Change the lines:
Into:
Happy coding!
Good work! This saved me a lot of time!
nicer... in my opinion ;-)
selection. Allows for immediate selection after only one
click, instead of two.
{
...
if (pItem->m_nItemType==PIT_COMBO)
{
...
if (j != CB_ERR)
m_cmbBox.SetCurSel(j);
else
m_cmbBox.SetCurSel(0);
}
...
}
ON_CBN_KILLFOCUS(IDC_PROPCMBBOX, OnKillfocusCmbBox)
ON_CBN_CLOSEUP(IDC_PROPCMBBOX, OnKillfocusCmbBox)
display a vertical scrollbar when its list contains a
large number of items. And it may be a bit larger as well.
Personally i don't like the CBS_NOINTEGRALHEIGHT style.
But you can keep it if you want.
rect.bottom += 100;
m_cmbBox.Create(CBS_DROPDOWNLIST | CBS_NOINTEGRALHEIGHT | WS_VISIBLE | WS_CHILD | WS_BORDER,
rect.bottom += 300;
m_cmbBox.Create(CBS_DROPDOWNLIST | WS_VSCROLL | WS_VISIBLE | WS_CHILD | WS_BORDER,
Originally posted by: Sky Sapphire
When I used it (just showing text), it gives me a blank rect.
ReplyOriginally posted by: Thomas
First of all, it's a very good work... i've saved a lot of time with this code.
Could somebody tell me how i can enable and disable some items in a proplist?
Originally posted by: Burkhard
Hi,
first thanks for you work. It helped me to implement my own PropertyControl.
I've one problem with a CCombobox using DropDown Style (editable text). For this control the OnKillFocus will not be called as expected.
I hide my controls on OnVScroll message. Before this the framework calls normlay OnKillFocus so I can read the changings. This works for CEdit and CComboBox with DropDownList Style, but not for DropDown Style.
Has anyone an idea?
Originally posted by: Keivan
Hi,
thank you for your Code.
I want to reach every edit field with the tab stop. How is it possible? (Till now I must click with the mouse on every field. It is not comfortable)
Thank you again for your help.
Keivan
ReplyOriginally posted by: Dan
Hi , your code is great and saved me a lot of time.
Do you know how can I add an horizontal scrollbar for a long text properties ?
10x
Reply