Print Page | Close Window

Combobox number of items shown

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=16053
Printed Date: 15 November 2024 at 6:51pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Combobox number of items shown
Posted By: MDacore
Subject: Combobox number of items shown
Date Posted: 21 January 2010 at 11:53am
Hi,

I'm using VB6 with ReportControl V11.2.2.

I added a few Comboboxes to a grid. In one column the number of items is larger than 10 so the control will show the dropdownlist of this combobox with scrollbars:



Is there any way to define how many items will be shown until a scrollbar appears? For example 15?
Because my customer doesn't like scrolling through lists. :)




Replies:
Posted By: mdoubson
Date Posted: 21 January 2010 at 3:04pm
It is easy to modify in MFC version but in Activex for all existed versions it is impossible (hardcoded 10 items).
May be we can add such param (like ItemsToShow) in future


-------------
Mark Doubson, Ph.D.


Posted By: mdoubson
Date Posted: 21 January 2010 at 4:42pm

I added such feature for MFC an ActiveX - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar - https://forum.codejock.com/uploads/BetaOCX/ReportControlBeta14.rar

VB code to try -
Column.EditOptions.AddComboButton True
Column.EditOptions.GetInplaceButton(0).ItemsShowInDroplist = 15


-------------
Mark Doubson, Ph.D.


Posted By: MDacore
Date Posted: 22 January 2010 at 6:45am
Thanks for the quick reply.
Well, in this case I have to wait until this is possible in the ActiveX version.
No problem, for my customer it'll be a 'Nice to have'-Feature only. :)




Posted By: jpbro
Date Posted: 22 January 2010 at 12:11pm
That is the ActiveX version...Mark added the new feature for you already, and just needs you to test it out.



-------------
Product: Xtreme SuitePro (ActiveX) version 16.2.6
Platform: Windows XP - SP3

Language: Visual Basic 6.0 SP6



Posted By: MDacore
Date Posted: 27 January 2010 at 7:49am
When I posted my response the second post from Mark wasn't visible here (I also got a private message from him, but I've read this first).
I've already tested the feature in the Beta-Version and it works fine.

Thanks for the help.

-close-



Posted By: dleibold
Date Posted: 10 December 2010 at 3:30pm
For reference, this seems to be handled (at least in v13.3) by setting CXTPReportInplaceButton::m_Items2Show
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net