Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

    Success with big-league hierarchical menu using ActiveX TreeControl with Alpha Five V9!

    Alpha Five V9 offers a native tree control which is ideally suited for building hierarchies where the underlying data is repeating, for example:
    Country | State | City.

    Alpha Five�s control, however, does not easily handle two other common hierarchical tasks: building deep application menus and handling recursive data.

    Because so many of you have assisted and helped me as I put my toe into the AlphaFive waters, I wanted to report success with the application menu task using a third party ActiveX control and show you the final result built using A5V9.

    I created a simple table with the following field definitions:
    Sort key | Tab position | Text | Form

    I then populated this table with sample data from the world�s largest ERP system as a challenge to both the third party control and to A5V9.

    When I double click on a transaction on the menu, identified using the square box icon, the appropriate form smoothly launches in A5.

    Sometimes what appears to be complex turns out to be fairly simple, as I found in this case.

    A5V9 offers an interesting tool in its new Accordian supercontrol, but this control only permits expansion to one subordinate level. Use of this control requires
    fairly expert knowledge of XDialog.

    A5V9 also offers multiple buttons controls, which have been the typical solution to menu structures. The challenge with these are their maintenance and inflexibility.

    My solution is extremely flexible. By changing the data in the underlying table, my menu can immediately reflect the structure I want for my application.
    Additionally, I have one menu for the entire application; no splitting it up and trying to remember the organization of the pieces. And finally, my solution has an additional benefit: it allows me to develop an application and give my end user, the ability to modify the menu to suit his needs.

    You may note several important differences. The background of the control is colored, and not white as only permitted by A5V9. More importantly, as the tree is expanded, the icons change position (little gray triangles in lieu of + and -, open and closed folders), and the color dynamically gets lighter. So its always easy to see when you return to a menu where you have been.

    You will notice that I did not clutter my tree with �cutsey� icons and for good reason: with large applications you simply run out of good icons early in the game and the result is decoration with little meaning.

    For me, the Office 2007 �Ribbon� was the straw that broke the camel�s back. Microsoft Access 2007 was touted as easy to use, yet to create menus you had to master XML. Give me a bloody break. It is impossible to anticipate all the places a user may jump to from a given form.

    My open and closed icons were from www.glyphlabs.com, which I found to be of high quality, consistent graphic appearance, and modestly priced.

    I used IconEdit Pro to create the gray right and bottom arrows and the square box icon to launch a transaction.

    The tree control I used was ctTree from DBI Technologies. This is one of a handful of firms committed to maintaining high quality ActiveX controls, when most software houses have capitulated to .net. I found a bug in the mask color of the Plus picture property back in December, demonstrated that it occurred also with MS Access not just A5, and within four days, they had fixed it and sent me the patch. Talk about responsive!

    Any of you guys are interested in playing with this, I�ll post my code in the code library. I think DBI Tech offers a free 30 day trial period if you wish to play with it.

    My next project: bringing A5 out of the tab control dark ages.
    Last edited by rmcgaffic; 04-24-2008, 08:23 PM.

    #2
    Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

    I know you've been playing with this a long time. Very well done Bob.

    Thanks for sharing!

    Comment


      #3
      Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

      I agree - very well done! Thanks for sharing!

      Comment


        #4
        Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

        Bob,
        Yep, very nice,well done. Would certainly be interested in that code library entry.
        Tim Kiebert
        Eagle Creek Citrus
        A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

        Comment


          #5
          Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

          Bob...
          Great Job, I am going to try it. And, you are right, I have used DBI before, they do a good job.

          Comment


            #6
            Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

            Wow that does look stunning, I was just looking at an app that uses something similar but otherwise looks like it could have been written in Alpha5 :)

            (They do appear to be using these components, as the browse component looks like the examples on the DBI page - of course all that is native in A5 now!)

            Comment


              #7
              Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

              All,

              Everything now appears to be working correctly. I have documented this project in a 16 page MS word document, including all code and screen prints of control settings, available in the Code Archive with the title "How to create a dynamic hierarchical menu"

              Bob McGaffic
              Pittsburgh

              Comment


                #8
                Re: Success with big-league hierarchical menu using ActiveX TreeControl with A5V9!

                Robert,

                Great job and nicely documented. However, rather than the Code Archive (or maybe in addition to it?), might I suggest that LearnAlpha.com might be better place for such an extensively documented contribution.

                Ray

                Comment

                Working...
                X