Toolbar problem

Posted on 2012-09-04
Medium Priority
Last Modified: 2012-09-11
Guys, have a a toolbar that is driving me crazy.  It must have something to do with setup, but I cannot spot what is it.

I have a toolbar with nine buttons.  Apparently, all the buttons have the LEFT property as uneditable at runtime.  Why do i care?   I have moved the first three buttons around numerous times, "Checks, Payers, Payees", but no matter what i do, pre-save and close, close as save, whatever the buttons go back to an order of "Payees, Payers, Checks".

I thought, ok, I give up, and took the payee and checks buttons, command4 and command6, and swapped the names, code, everything, and saved again.  They turned back to "Payees, Payers, Checks" on saving (!!!!).

I would appreciate any suggestions on why this is happening.

Question by:fmoore0001
  • 3
  • 2
LVL 43

Assisted Solution

pcelba earned 2000 total points
ID: 38366902
Toolbar arranges all inside controls based on its own dimensions. The Left property is read only and irrelevant because it changes whenever you change the toolbar dimensions. E.g. if you rearrange the toolbar into a vertical window then all Left values are equal.

There is nothing like "control order" available in toolbar but my experience says: controls appear in order of their creation in a toolbar. In other words we could expect controls are ordered based on their appropriate record order in .VCX class library (or .SCX). So remove all buttons from your toolbar and add them one by one again.

Alternatively you could create a new empty toolbar and add buttons from the existing one by Copy and Paste.
LVL 43

Assisted Solution

pcelba earned 2000 total points
ID: 38366930
One more hint: You don't need to remove all buttons and add them again. Simply open the toolbar in design mode and rearrange buttons to the order of your chice. It will be preserved for app run.

Accepted Solution

fmoore0001 earned 0 total points
ID: 38374838

Tried both ways.  When built a new toolbar with the old buttons, it went right back to the wrong order again.

I never solved the behavior.  What I accidently did was move the fourth button to the front in frustration, and saved, it sorted in the right order and stayed there.  With that, I drop the matter.  I am fixed, just don't know why.
LVL 43

Expert Comment

ID: 38375309
Sounds like a nensense to me BUT as I know VFP everything is possible. And you are right if it works then no need to bother with it any more... :-)

Of course, it would be interesting to study physical record order in your .VCX after saving and compare it to the tollbar appearance.

Author Closing Comment

ID: 38386098
My solution worked.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Microsoft Visual FoxPro (short VFP) is a programming language with it’s own IDE and database, ranking somewhat between Access and VB.NET + SQL Server (Express). Product Description: http://msdn.microsoft.com/en-us/vfoxpro/default.aspx (http://msd…
Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses
Course of the Month15 days, 20 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question