Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need a method or some "user32" function to answer me how high each of ListBox lines actually is. It used to be available in olden 16-bit days. This is needed for calculating target ListBox item, where we finally drop the dragged stuff. MSForms provides useful value of mouse Y for that precise moment. For a given font (like Tahoma 8) calculation is easy: TargetRow = ListBox1.TopIndex + Int((Y + 4.5) / 10) '4.5 used to skip top half-line - however it will fail miserably when e.g. system substitues this font or some other video related change happens. So, I need to know the height of each line... Thanks in advance Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Drag & Drop | Excel Worksheet Functions | |||
how to drag items within listbox | Excel Discussion (Misc queries) | |||
drag and drop | Excel Discussion (Misc queries) | |||
Wanted func to determine height of ListBox row | Excel Programming | |||
Drag/drop - calc of ListBox row wanted | Excel Programming |