Jump to content

How to calculate the height of Combo-Lists for Windows 2000


 Share

Recommended Posts

I just read the following FAQ topic:

Q17. Why doesn't my combobox (GUICtrlCreateCombo) show a dropdown list when clicked?

A1. When using GUICtrlCreateCombo be sure to enter the desired height for your combobox list in the "height" parameter. Windows XP automatically selects an appropriate height for combo boxes, but other versions of Windows usually do not.

CODE: AutoIt$combo = GUICtrlCreateCombo("",10,10,200,20)

would be correctly changed to

CODE: AutoIt$combo = GUICtrlCreateCombo("",10,10,200,200)

One question: The height obviously depends on the number of list entries AND on the font used, but are there other things (frame border, margin from border to active text, ...) to take into account? Is there an easy way to do the same calculation (WinXP does automatically) inside my script?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...