Author Topic: how to control dynamically on the height of the dropdown list?  (Read 56 times)

davidp@ensuredr.com

  • Newbie
  • *
  • Posts: 12
how to control dynamically on the height of the dropdown list?
« on: November 20, 2019, 12:58:49 am »
i tried using this but it didn't worked:

Code: [Select]
  CB_SETMINVISIBLE = 5889
  hWnd = DialogControlGet(handle, dropDownName, @dchWnd)
  result = DllCall('user32.dll', long:'SendMessageW', long:hWnd, long:CB_SETMINVISIBLE, long:5, long:0)

td

  • Tech Support
  • *****
  • Posts: 3103
    • WinBatch
Re: how to control dynamically on the height of the dropdown list?
« Reply #1 on: November 20, 2019, 08:38:56 am »
You can change the width but you can't easily change the height of the dropdown list part of the control once the size is set at creation.  Haven't tried but you could theoretically change the height of the list by changing the font.  However, that more or less defeats the purpose.
"No one who sees a peregrine falcon fly can ever forget the beauty and thrill of that flight."
  - Dr. Tom Cade

davidp@ensuredr.com

  • Newbie
  • *
  • Posts: 12
Re: how to control dynamically on the height of the dropdown list?
« Reply #2 on: November 20, 2019, 11:16:10 pm »
ok thanks!