January 28, 2020, 02:50:15 PM

Author Topic: [bmx] SetComboboxHeight by JoshK [ 1+ years ago ]  (Read 728 times)

Offline BlitzBot

  • Jr. Member
  • **
  • Posts: 1
[bmx] SetComboboxHeight by JoshK [ 1+ years ago ]
« on: June 29, 2017, 12:28:42 AM »
Title : SetComboboxHeight
Author : JoshK
Posted : 1+ years ago

Description : Sets the maximum height a combobox list drops down to when opened

Code :
Code: BlitzMax
  1. Function SetComboboxHeight(gadget:TGadget,height)
  2.         Local combohwnd=SendMessageA(QueryGadget(gadget,QUERY_HWND),CBEM_GETCOMBOCONTROL,0,0)
  3.         SetWindowPos combohwnd,0,0,0,GadgetWidth(gadget),Desktop().ClientHeight(),SWP_NOMOVE|SWP_NOZORDER|SWP_NOREDRAW|SWP_NOACTIVATE
  4. EndFunction


Comments : none...