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

Turn off Display of all Toolbars and Menus from distributed Application

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

  • Turn off Display of all Toolbars and Menus from distributed Application

    Is there a way to turn the display off for all System Menus and Toolbars in one place or do I have to enter each Form, go to Properities, go to Menus / Toolbars and select "none" for each view?

    I want the end user of my distributed application to enter, process and exit via my buttons, period.

    Thanks,
    Rudy

  • #2
    Re: Turn off Display of all Toolbars and Menus from distributed Application

    Originally posted by Rudy16 View Post
    Is there a way to turn the display off for all System Menus and Toolbars in one place? ...
    No. But I would bet that some bright guru (that's not me!) could write a script that would do them all at once.

    Raymond Lyons

    Comment


    • #3
      Re: Turn off Display of all Toolbars and Menus from distributed Application

      Is that a challenge?

      What's it worth? Huh? Huh?

      I think I could create something that will change whatever menu/toolbars you choose to whatever name you choose in whatever forms you choose but it'll take a couple hours to build it. (Of course, any custom menu/toolbar name will have to exist before you can select it.) One of my other routines should give me a basis to start from for this one.
      Last edited by CALocklin; 05-24-2009, 02:07 PM.

      Comment


      • #4
        Re: Turn off Display of all Toolbars and Menus from distributed Application

        Cal,

        I think he doesn't want ANY menus or toolbars. He just doesn't want to open each form and turn them off individually.
        Peter
        AlphaBase Solutions, LLC

        Peter@AlphaBaseSolutions.com
        https://www.alphabasesolutions.com


        Comment


        • #5
          Re: Turn off Display of all Toolbars and Menus from distributed Application

          Originally posted by CALocklin View Post
          Is that a challenge?

          What's it worth? Huh? Huh? ....
          Hi Cal,

          I am sure you (among others) could do it (I have a couple of your utilities and in time savings they have been worth far more than I paid for them). Indeed, I think I could do it too but it is not worth anything to me since I have never wanted what Rudy wants. Maybe it would be worth enough to Rudy for him to pay for a couple of hours of your time?

          Ray Lyons

          Comment


          • #6
            Re: Turn off Display of all Toolbars and Menus from distributed Application

            Originally posted by Peter.Greulich View Post
            Cal,

            I think he doesn't want ANY menus or toolbars. He just doesn't want to open each form and turn them off individually.
            Yep - that's "<None>".

            You can't actually leave a menu or toolbar blank. If you do, it switches to <System Default> when you close the Properties dialog.

            I'm just thinking that if I make something that can change them all to <None>, why not also allow them to be changed to whatever you want? I'm picturing a dialog with the ability to select which forms are to be modified and a list of all 9 menu/toolbar types which can be set individually. Each name field would include a drop-down listing all available menu/toolbar names. So, you could say, for example, "Change all View menus to 'MyViewMenu' on forms A, B, C, G, and L and at the same time, set the Right Click menu to <None> on those same forms." Or, you could select all forms, set the all the menu bars to <None> and set all the View Toolbars to "MyViewToolbar" without changing the other toolbars. (I often leave out the menu bar but use a custom toolbar. Automating the process would be nice.)

            Maybe tomorrow. Right now I have to go mow the lawn. (a.k.a., cut the hay - it's been awhile).

            Comment


            • #7
              Re: Turn off Display of all Toolbars and Menus from distributed Application

              If you want to change all 9 form properties (shown below) to <none> then the following code should do what you want I think - I haven't tested it, so no guarantees.

              Code:
              'Change All Menus & Toolbars In All Forms Form Properties To  <none>
              DIM ptr as P
              DIM FormList as C
              FormList = a5.Form_Enum()
              FOR EACH FrmNam in FormList
              	ptr = a5_layout_design(FrmNam,"Form")
              	ptr.drop_down_menu = "<none>"
              	ptr.right_click_menu = "<none>"
              	ptr.query_by_form_drop_down_menu = "<none>"
              	ptr.query_by_form_right_click_menu = "<none>"
              	ptr.find_by_form_drop_down_menu = "<none>"
              	ptr.find_by_form_right_click_menu = "<none>"
              	ptr.toolbar = "<none>"
              	ptr.query_by_form_toolbar = "<none>"
              	ptr.find_by_form_toolbar = "<none>"
              	ptr.set_dirty()
              	ptr.command("file_save")
              	ptr.close()
              	xbasic_wait_for_idle()
              NEXT
              Last edited by ChrisHawkes; 05-24-2009, 07:21 PM.
              If It Works First Time, There's Something Wrong!!!

              Comment


              • #8
                Re: Turn off Display of all Toolbars and Menus from distributed Application

                Originally posted by ChrisHawkes View Post
                If you want to change all 9 form properties (shown below) to <none> then the following code should do what you want I think - I haven't tested it, so no guarantees.

                Code:
                'Change All Menus & Toolbars In All Forms Form Properties To  <none>
                DIM ptr as P
                DIM FormList as C
                FormList = a5.Form_Enum()
                FOR EACH FrmNam in FormList
                	ptr = a5_layout_design(FrmNam,"Form")
                	ptr.drop_down_menu = "<none>"
                	ptr.right_click_menu = "<none>"
                	ptr.query_by_form_drop_down_menu = "<none>"
                	ptr.query_by_form_right_click_menu = "<none>"
                	ptr.find_by_form_drop_down_menu = "<none>"
                	ptr.find_by_form_right_click_menu = "<none>"
                	ptr.toolbar = "<none>"
                	ptr.query_by_form_toolbar = "<none>"
                	ptr.find_by_form_toolbar = "<none>"
                	ptr.set_dirty()
                	ptr.command("file_save")
                	ptr.close()
                	xbasic_wait_for_idle()
                NEXT

                Comment


                • #9
                  Re: Turn off Display of all Toolbars and Menus from distributed Application

                  Peter was right on. The only control in my application is what I set up. The more the user can do, the easier it is to mess up.

                  Thanks for your code example Chris. I'll test it out later on.
                  I actually went into every Form, Report, and Label module in my application and changed it manually.

                  Going forward, as I create new ones, I'll make the necessary changes as I go along. It's no big deal then. For all reports, I use a Custom Print/Preview Menu however, for all others I supply the application controls via buttons and Code.

                  Perhaps in future upgrades, they can build in, up front, defaults prior to creating any Forms, Reports or Labels simply by presenting you with all the views once which you can select and save.

                  My thanks to everyone who read and contributed to this request.

                  Rudy

                  Comment


                  • #10
                    Re: Turn off Display of all Toolbars and Menus from distributed Application

                    Originally posted by CALocklin View Post
                    Yep - that's "<None>".

                    You can't actually leave a menu or toolbar blank. If you do, it switches to <System Default> when you close the Properties dialog.
                    Cal,

                    Is that a v9 default? I'm pretty sure in v8 and elsewhere, you can set <none> if you want.
                    Peter
                    AlphaBase Solutions, LLC

                    Peter@AlphaBaseSolutions.com
                    https://www.alphabasesolutions.com


                    Comment


                    • #11
                      Re: Turn off Display of all Toolbars and Menus from distributed Application

                      OK. I see what you are saying: "none" vs. "blank". Anyway, he wants <none>.
                      Peter
                      AlphaBase Solutions, LLC

                      Peter@AlphaBaseSolutions.com
                      https://www.alphabasesolutions.com


                      Comment


                      • #12
                        Wacky whack-a-ma-tack

                        Originally posted by ChrisHawkes View Post
                        If you want to change all 9 form properties (shown below) to <none> then the following code should do what you want I think - I haven't tested it, so no guarantees.
                        Hey Chris,

                        I tested it in v8 and it works - sort of.

                        i.e. it does set all the forms to <none>, but look at the wacky results you get when you run the code - see attached screen shot...
                        Peter
                        AlphaBase Solutions, LLC

                        Peter@AlphaBaseSolutions.com
                        https://www.alphabasesolutions.com


                        Comment


                        • #13
                          Re: Turn off Display of all Toolbars and Menus from distributed Application

                          Hi Peter

                          As I said, I haven't tried it. I wrote the code off the top of my head. When time allows I'll have a look at it.

                          Thanks for letting me know.
                          If It Works First Time, There's Something Wrong!!!

                          Comment


                          • #14
                            Re: Turn off Display of all Toolbars and Menus from distributed Application

                            Or try this new, free addin I created.

                            Since this addin would be for developer use only, it is installed to the addins_installed folder and activated by right clicking in the Forms tab of the A5 Control Panel.

                            See a demo.

                            Yes, this uses the same basic routines that Chris listed above. I just added some usability features.

                            Comment


                            • #15
                              Re: Turn off Display of all Toolbars and Menus from distributed Application

                              Updated script for completeness - Tested this on 60 forms in v8 with no problems.

                              Code:
                              'Change All Menus & Toolbars In All Forms Form Properties To  <none>
                              DIM ptr as P
                              DIM FormList as C
                              FormList = a5.Form_Enum(2)
                              FOR EACH FrmNam in FormList
                               ptr = a5_layout_design(FrmNam,"Form")
                               ptr.Command("system_design")
                               '***Copy Existing Properties Of Form That Automatically Change When Form Is Saved
                               vForm_Width = ptr.form_width
                               vForm_Height = ptr.form_height
                               vWindow_Height_mode = ptr.window.height_mode
                               vWindow_Width_mode = ptr.window.width_mode
                               vWindow_allow_maximize = ptr.window.allow_maximize
                               vWindow_allow_minimize = ptr.window.allow_minimize
                               vWindow_allow_resize = ptr.window.allow_resize
                               vWindow_has_caption = ptr.window.has_caption
                               vWindow_has_system_menu = ptr.window.has_system_menu
                               '***
                               ptr.drop_down_menu = "<none>"
                               ptr.right_click_menu = "<none>"
                               ptr.query_by_form_drop_down_menu = "<none>"
                               ptr.query_by_form_right_click_menu = "<none>"
                               ptr.find_by_form_drop_down_menu = "<none>"
                               ptr.find_by_form_right_click_menu = "<none>"
                               ptr.toolbar = "<none>"
                               ptr.query_by_form_toolbar = "<none>"
                               ptr.find_by_form_toolbar = "<none>"
                               '***Put Back Properties Of Form That Automatically Change When Form Is Saved
                               ptr.form_height = vForm_Height
                               ptr.form_width = vForm_Width
                               ptr.window.height_mode = vWindow_Height_mode
                               ptr.window.width_mode = vWindow_Width_mode
                               ptr.window.allow_maximize = vWindow_allow_maximize
                               ptr.window.allow_minimize = vWindow_allow_minimize
                               ptr.window.allow_resize = vWindow_allow_resize
                               ptr.window.has_caption = vWindow_has_caption
                               ptr.window.has_system_menu = vWindow_has_system_menu
                               '***
                               ptr.set_dirty()
                               ptr.command("file_save")
                               ptr.close()
                               sleep(0.25)
                               xbasic_wait_for_idle()
                              NEXT
                              Cal
                              As usual you've come up with an ideal solution. One suggestion if I may, could you reduce the width for those who are still working on standard screen sizes (IOW not widescreen).
                              If It Works First Time, There's Something Wrong!!!

                              Comment

                              Working...
                              X