Combo Box - Visible Items

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Combo Box - Visible Items

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm

by Anonymous >> Wed, 12 Dec 2007 21:01:31 GMT

Is it possible to create a JADE combo box with more than 7 visible items displaying at once, something like displaySize or displayEntries. I can not seem to find any properties to solve this and have searched the newsgroups and parsys.

Thanks,
Andrew

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box - Visible Items

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm

by BeeJay >> Thu, 13 Dec 2007 21:48:34 GMT

As far as I know this is not possible and looking in Parsys there are still open requests for the ability to control the size of the dropDown area of a ComboBox so I suspect the answer is no it is not currently possible.

I have seen developers "kludge" this programmatically using an appropriately positioned button, made to look like a ComboBox drop down button, and relevant mouse and keypress event methods. There are however significant overheads in AppServer round-trips that can make this a non-option if you have users connecting via slow connections.

Out of interest, why do you need more than 8 visible items for a given ComboBox?

Note: I actually get 8 entries not 7 in my ComboBoxes.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box - Visible Items

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm

by Allistar >> Thu, 13 Dec 2007 22:27:48 GMT

You should be able to do this with an external function call. See this:

http://msdn2.microsoft.com/en-us/library/bb775915.aspx

Allistar.
--
A.

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box - Visible Items

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm

by Anonymous >> Tue, 29 Jan 2008 21:26:17 GMT

We need to be able to extend the size of the visible items to save our data entry operators an extra click/scroll of the mouse. There were currently 8 entries and they have just added a ninth. This means that a scrollbar is now visible and they need to scroll down first to select the ninth item. We are currently using the standard JADE combo box and didn't really want to implement any third party products to achieve this.

I attempted to use the sendMessage function but it did not succeed.

constants
CB_SETMINVISIBLE : Integer = #1702;
vars
v : Integer;
begin
//load up extra items opn the combo box
v := call sendMessage(cmbTenderType.hwnd, CB_SETMINVISIBLE, 9, 0); write v;
end;

I also could not get any other sendMessages functions to query the comboBox either such as CB_GETCOUNT = #146

Thanks

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Combo Box - Visible Items

Postby ConvertFromOldNGs » Fri Aug 07, 2009 1:16 pm

by cnwjhp1 >> Tue, 29 Jan 2008 22:54:34 GMT

If they normally want the last entry, you could do the scrolling for them.


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 42 guests