Originally posted by: Mike Philis
Mike
Do you need a powerfull PropertiesList? Check this out:
http://www.exontrol.com/sg.jsp?content=products/expropertieslist
www.exontrol.com
Originally posted by: Stefan Belopotocan
My new website is at http://www.belosoft.host.sk
ReplyOriginally posted by: Stefan Belopotocan
I have not yet updated my code at CodeGuru, but the latest code updates you can find http://stefanbelopotocan.miesto.sk/propertylistctrl_e.htm
ReplyOriginally posted by: Sander van Woensel
When the LBS_NOINTEGRALHEIGHT style is not set, the listbox will resize the oversize back to the
So, all together, I suggest:
#define DEFAULT_IPLISTBOX_HEIGHT (13+1) * 8 // 13+1: common itemheight with marge times 8 items
void CInPlaceComboBoxImp::ResetListBoxHeight()
GetClientRect(rect);
int nItems = m_wndList.GetCount();
if(nListBoxHeight > DEFAULT_IPLISTBOX_HEIGHT)
m_wndList.SetWindowPos(NULL, 0, 0, rect.Width(), nListBoxHeight, SWP_NOZORDER|SWP_NOMOVE);
Since itemheight is mostly not the same width as ::GetSystemMetrics(SM_CXHSCROLL) in a ListBox
you would rather use GetItemHeight(0), summize this with 1, since the following weird thing occurs:
GetItemHeight(0) * 2 = not enough to hold 2 items
GetItemHeight(0) * 7 = exactly enough to hold 7 items
correct value it needs to hold all the items, in your case, with 2 items it is correctly resized,
only when 7 items are the case, the listbox resizes itself one item to big ...
{
CRect rect;
rect.right -= 1;
int nListBoxHeight = nItems > 0 ? m_wndList.GetItemHeight(0)+1) * nItems : DEFAULT_IPLISTBOX_HEIGHT;
nListBoxHeight = DEFAULT_IPLISTBOX_HEIGHT;
}
Originally posted by: Sander van Woensel
When the Listbox is not large enough to contain all items,
it creates a vertical scrollbar (oh really?) Now, somehow this scrollbar doesn't work, didn't found a sollution yet..
For the rest, an outstanding peice of source!
can anybody help?
Regards,
S. van Woensel
Originally posted by: John L. Martin
I think that because the in-place combo box's dropdown list is created as a child of the listbox window, the dropdown list is limited to the client area of the listbox window. This means that when the control is near the bottom of the window, the list box is "cut off" and it does not work like a normal windows combo box (which would extend past the window bottom).
Does anyone have a solution?
Originally posted by: Martin Filteau
Really cool!
The only thing *really* missing is keyboard support (try changing property settings without the mouse...) This shouldn't be that hard to code....
Reply
Originally posted by: Daniel Schmid
Hi
when you dynamically create the control (f.i in a dockable controlbar object) you need to have the MeasureItem method implemented.
Thanks for excellent work
Daniel
Originally posted by: Brian V. Shifrin
Thanks,
I also noticed one little thingy, when InPlaceControl not fully visible and get's clipped by propertyListBoxControl...
Try adding 10 combobox properties....
Any suggestions how to fix that?
Bri
Reply