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