Toolbar problem

Posted on 2012-09-04
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
    LVL 41

    Assisted Solution

    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 41

    Assisted Solution

    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


    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 41

    Expert Comment

    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

    My solution worked.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Suggested Solutions

    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://msd…
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    This video discusses moving either the default database or any database to a new volume.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now