Page 6 of 6 FirstFirst 123456
Results 76 to 79 of 79

MS Access - X Y Cordinates of Control Top

  1. #76
    ironfelix717 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    131
    Colin,



    Awesome work. It appears we've solved a couple issues with this long topic and are able to achieve the following:
    1) Provide mouse-over selection of listbox accurately
    2) Get the XY Cords of a given control by calculating the dimensions of the window.

    Thank you for your help with this and all others who contributed.

    I will be adding my "custom control" tutorial to this forum in some time.

    I will close the thread in 24 hours

    Best regards

  2. #77
    ironfelix717 is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Oct 2018
    Posts
    131
    Addition:

    So I am having trouble implementing this into my application....

    Wizhook is being uncooperative. Only returning 0.

    Must I make a reference to Wizhook? Why might it only return 0?


    Thanks

    EDIT: Solved, had another issue that was not related to Wizhook. All is working

  3. #78
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    3,837
    Ironfelix.
    I don't wish to nitpick but when you say 'we've solved .', I should point out that I used none of your code in my solution.
    In my opinion, this thread, together with the various links and attached files is in itself a tutorial for anyone who wishes to make use of it.

    As already stated I'm in the process of uploading this as a free resource on my website.
    You are of course welcome to use and modify the code for your own personal use though you should acknowledge the source material used.

    I look forward to see how you do use it as its never really been completely clear to me what your purpose is.

    NOTE: if you wish to use the code in a commercial application, you will need to get my permission to do so.
    Colin (Mendip Data Systems) : Website, email
    If this has helped, please click the star button and leave a comment

  4. #79
    isladogs's Avatar
    isladogs is offline Very idle programmer
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    3,837
    I've now published my example application on my website http://www.mendipdatasystems.co.uk/m...ols/4594549378
    The link includes a detailed account of each step involved including

    • measuring the dimensions of each form component
    • Points/twips/pixels conversion issues
    • the use of the undocumented and hidden VBA WizHook function to determine listbox row height accurately

    A PDF is also available of the full Web article
    Colin (Mendip Data Systems) : Website, email
    If this has helped, please click the star button and leave a comment

Page 6 of 6 FirstFirst 123456
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 9
    Last Post: 07-13-2018, 02:18 PM
  2. Replies: 3
    Last Post: 11-30-2016, 07:18 PM
  3. Replies: 4
    Last Post: 02-18-2016, 12:06 PM
  4. Replies: 8
    Last Post: 06-19-2015, 02:19 AM
  5. Tab Control in Access
    By Rosy6 in forum Forms
    Replies: 2
    Last Post: 04-25-2010, 12:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Tech Forums: Microsoft Office Forums