By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,872 Members | 2,333 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,872 IT Pros & Developers. It's quick & easy.

Getting the navigation button width by its index

P: 5
I am working on conversion of my 2003 Access applications to 2010 version. In the frame of this project I need to replace menu toolbar which Ive used as application menu in 2003 version. I am trying to imitate its functionality using navigation form and it works fine. I maintain the navigation process using three tables: roots (for the first menu level), branches (for the second level) and leaves for a list of actions (open forms, reports etc.). This list is shown in the subform section of the navigation form and is aligned with the selected branch button. The issue I have is how to manage alignments. It can be done by inserting in the click event for each branch button a statement permanently setting the left position of the actions list and it works. Since I have many applications and they are from time to time get modified, Id be interested to create a function that automatically calculate the left position of this list when the corresponding branch button is clicked. In the essence this function should calculate the total width of all buttons preceding to the one that was clicked. To do it I am looking for a navigation control property that gives me a width of the navigation button by its index. Can I get advice on which property or combination of properties can provide such functionality?
Mar 7 '16 #1
Share this Question
Share on Google+
1 Reply


P: 5
I found a solution. Thanks.
Mar 8 '16 #2

Post your reply

Sign in to post your reply or Sign up for a free account.