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

Form not locked down

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

    Form not locked down

    I have a form that is modal entry that I need to control the user's new entries, changes, and saves thru buttons on the form. I have just noticed that when I right click when hovering over a hidden conditional object that right click is active for enter, change, and cancel actions. I also notice that pressing the F3 key on the keyboard puts the form in 'change' mode.

    I have right click turned off in the form properties and also on all fields on the form. What else can I do to finish locking this form down the way I need it to be?

    As always, any help would be greatly appreciated.

    Bob Arbuthnot
    Belleville, KS.

    #2
    Re: Form not locked down

    see,
    <OBJECT>.ALLOW_CHANGE()

    Comment


      #3
      Re: Form not locked down

      John, thanks for responding.

      I tried putting cond1.ALLOW_CHANGE(.f.) in the on-activate event for the form, alas right clicking when hovering over the hidden object (cond1) still allows enter, change, and cancel actions off the right click menu. The F3 key still puts the form in change mode. I'm going to let this thread sit out here for another 24 hours or so and see if anyone has any other thoughts. If no one does I'll submit a bug report.

      Bob Arbuthnot

      Comment


        #4
        Re: Form not locked down

        OK, I entered the following code in the form's OnKey event to disable the F3 key:

        Code:
        If a_user.key.value="{F3}"
        a_user.key.handled=.T.
        if a_user.key.event="down" then
        end if
        end if
        Also, used the same code to disable the F8 key (opens the underlying table in browse view).

        Am still at a loss as to what to do about the right click over a hidden conditional object that opens up the right click menu for change, enter, and cancel on a modal form with right click disabled for 1)the form, and for 2)all fields on the form.
        Last edited by Bob Arbuthnot; 01-24-2014, 05:22 PM.

        Comment


          #5
          Re: Form not locked down

          Bob,

          Preventing any changes to a form
          Perhaps you want to prevent the user from making any changes on your form. That is simple in Xbasic. The
          new properties we will use are:
          <form_pointer>.restrict_enter
          <form_pointer>.restrict_change
          which are akin to changing the properties of the form in design mode, and the property
          browse_name.browse.readonly
          which changes the editing properties of a browse.

          Comment


            #6
            Re: Form not locked down

            Bob, its beginning to sound like you might have to redesign form to work around the CO behavior. You also should consider submitting a formal bug report... or would you consider this a new feature wishlist item?

            Truly locking down a form takes a lot of work. You might be ahead of the game to use an xdialog instead of the form.

            Another idea: what happens if you put a cancel() in the CanArrive event for the CO?

            Comment


              #7
              Re: Form not locked down

              Hi, Tom. Long time no taco! Thanks for responding.

              Hadn't thought about creating the form as an xdialog, might explore that.

              To my way of thinking this is a bug. Why would you ever want an action to only be active when right clicking over a hidden object???

              Is CanArrive even available for a CO (especially a hidden one!)???

              ba

              Comment


                #8
                Re: Form not locked down

                the best way to handle forms is to set the data entry to modeless, and in the onfetch event say parentform.allow_change(.f.)
                then put a button on the form - Edit, and say parentform.allow_change(.t.)

                this is much better than parentform-modal.
                Cole Custom Programming - Terrell, Texas
                972 524 8714
                [email protected]

                ____________________
                "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                Comment


                  #9
                  Re: Form not locked down

                  Bob, the docs suggested canArrive is available, but when I try to implement the idea, no can do. Sorry.

                  Comment


                    #10
                    Re: Form not locked down

                    Martin, thanks for the post and the advice.

                    I tried putting parentform.allow_change(.f.) in the form's onfetch event. Still, when you right click on the space occupied by a hidden conditional object the right click menu appears with the options to change, enter, or cancel available. As I stated above, right click menu is turned off for the form and for all fields on the form.

                    I think this is a bug. I will try to get a bug report submitted this weekend with a sample form, etc.

                    ba

                    Comment


                      #11
                      Re: Form not locked down

                      Thanks anyway, Tom. I still appreciated the input.

                      ba

                      Comment


                        #12
                        Re: Form not locked down

                        Bob, I doubt that the right click is happening on the conditional, rather the form itself
                        Cole Custom Programming - Terrell, Texas
                        972 524 8714
                        [email protected]

                        ____________________
                        "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                        Comment


                          #13
                          Re: Form not locked down

                          Martin, see for yourself in attached db. Bottom half of form is a hidden conditional object, top half is not. Right click on bottom half and you get right click menu to cancel, enter, change, or save. Right click on top half and nothing happens.

                          ba
                          Attached Files
                          Last edited by Bob Arbuthnot; 01-26-2014, 07:21 PM.

                          Comment


                            #14
                            Re: Form not locked down

                            Bug report submitted. I will post here what I hear back.

                            ba

                            Comment


                              #15
                              Re: Form not locked down

                              Work around received back from Selwyn (you gotta admire these guys committment to their product!).

                              ba

                              thanks.

                              i look like it is a limitation, not a bug - you can't set the right click menu for a conditional control.

                              there is a work around that might meet your needs. see video.

                              http://screencast.com/t/PU20YquRnHxH

                              Comment

                              Working...
                              X