473,408 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Getting the navigation button width by its index

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 I’ve 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, I’d 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
1 1040
I found a solution. Thanks.
Mar 8 '16 #2

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

Similar topics

2
by: DBLWizard | last post by:
Howdy All, I am trying to standardize all the buttons on a site by using a style sheet to specify their height, width, background all those things. But I can seem to get the simplest of things...
1
by: Dan V. | last post by:
Why when I add a bulleted list to a page does it mess up the Navigation list on the left? These are the two pages: (one has a bulleted list the other does not and works fine) ...
7
by: Jose Cuthberto | last post by:
WRAPPER CODE FOR A SET OF HTML FILES, AND BUTTON BAR LOOKS LIKE BELOW: |< < <> > >| => <= O' (magnifying glass for small gif text) I have a number of isolated html files for a 1000 page...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
0
by: swingingming | last post by:
Hi, I am new here. And this is so confusing to me. On the online MS access downloads, I downloaded the order entry sample database. On the 'Orders by customers' form, we can click on the...
2
by: Smriti Dev | last post by:
Hi There, In my access form, I do not want the record navigation button in the bottom to display. How can I hide it from the interface? Thanks, Smriti
6
by: sgottenyc | last post by:
Hello, If you could assist me with the following situation, I would be very grateful. I have a table of data retrieved from database displayed on screen. To each row of data, I have added...
1
epots9
by: epots9 | last post by:
I have a image inside of a div <div id="image"> <div id="loader"> <img id="loaderImage" src="assets/loader.gif" alt="loading..." /> </div> <div id="loaded"> <img id="picture" src="" alt=""...
5
by: ismailc | last post by:
Good day, I have button with no width specified. The text value of the button differs, so i left it with no width. It automatically sets the width but the problem is it to wide with about 5...
11
didajosh
by: didajosh | last post by:
I have made a form and added navigation buttons using the wizard. When the focus is on the first Record, I want the "Previous Record Button" to disable. So in the code in Click event I want to...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.