Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 64
Default Func wanted for drag/drop in ListBox

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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drag & Drop Freshman Excel Worksheet Functions 1 November 5th 09 08:26 AM
how to drag items within listbox MP Excel Discussion (Misc queries) 0 January 15th 09 03:56 PM
drag and drop sramsey Excel Discussion (Misc queries) 5 February 22nd 08 09:35 AM
Wanted func to determine height of ListBox row count Excel Programming 2 May 24th 04 06:38 PM
Drag/drop - calc of ListBox row wanted count Excel Programming 0 May 23rd 04 01:01 AM


All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"