Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - ComboDropHeight (suggestion)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

ComboDropHeight (suggestion)

 Post Reply Post Reply
Author
Message
dialogik View Drop Down
Newbie
Newbie


Joined: 25 July 2004
Location: Switzerland
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote dialogik Quote  Post ReplyReply Direct Link To This Post Topic: ComboDropHeight (suggestion)
    Posted: 25 July 2004 at 6:27am

dear staff

it would be perfect to have a possibility to control the heigt of a combobox dropdown,
the hardcoded 12 lines is not really nice. m_dropdownitemcount would be much nicer!
best regards,
christoph braendle

BOOL CXTPControlComboBoxList::Popup(CXTPControlPopup* pControlPopup, BOOL /*bSelectFirst*/)
{

SetFont(CXTPPaintManager::GetIconFont());
m_pControlPopup = pControlPopup;
CWnd* pWndOwner = GetOwnerSite();
if (pWndOwner)
pWndOwner->SendMessage(WM_XTP_INITCOMMANDSPOPUP, , (LPARAM)this);
SetTrackingMode(TRUE, FALSE);
UpdateFlags();
CRect rcControl = pControlPopup->GetRect();
int nItemHeight = ((CListBox*)this)->GetItemHeight(0);
int nHeight = min ( 12 , max(1, ((CListBox*)this)->GetCount())) * nItemHeight + 4;
int nWidth = m_nMRUWidth <= 0? rcControl.Width(): m_nMRUWidth;
SetPosition(CSize(nWidth, nHeight));
return TRUE;
}

Back to Top
Warren View Drop Down
Groupie
Groupie
Avatar

Joined: 23 February 2005
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Warren Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2005 at 5:22pm
I second this request - I just ran into this issue today.

Please add support for this!!!

Warren

Back to Top
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2005 at 11:51pm

Hello,

SetDropDownItemCount method added.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
Barto View Drop Down
Groupie
Groupie


Joined: 27 February 2005
Location: Germany
Status: Offline
Points: 60
Post Options Post Options   Thanks (0) Thanks(0)   Quote Barto Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2005 at 3:47am

Please add the same method for the PropertyGrid's InPlaceList.

I've always been patching the XTP source code, that's not a good way to do it :)

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.039 seconds.