[bmx] SetComboboxHeight by JoshK [ 1+ years ago ]

Started by BlitzBot, June 29, 2017, 00:28:42

Previous topic - Next topic

BlitzBot

Title : SetComboboxHeight
Author : JoshK
Posted : 1+ years ago

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

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


Comments : none...