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

Accidentally deleting objects

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

    Accidentally deleting objects

    When navigating a popup form, I have noticed that the delete key focus seems to always be on control panel. Thst is, if you have a type-in field on a popup form and happen to press the delete key, you are prompted with another A5 warning message "Delete yes/no". Can be quite devastating. Any ideas on why the delete key focus is not on the popup form?

    Tom Lyon

    #2
    RE: Accidentally deleting objects

    Tom, I know what a pop-up menu is. What's a pop-up form?

    -- tom

    Comment


      #3
      RE: Accidentally deleting objects

      a modal form:

      form.view("formname")

      a popup form:

      form.view("formname", "Popup")

      My previous posting lost an important part - the dialog that pops up asks if you are sure you want to delete "some form name" Yes/No.

      Tom Lyon

      Comment


        #4
        RE: Accidentally deleting objects

        Tom,

        I tried to replicate the behavior you describe and could not.

        Take a look at the simple example I've attached. The called 'popup' form gets focus just fine. If the user strikes the delete key after the form opens it operates locally against currently selected text.

        How is your situation different from this ?

        I'm using vers. 4.03

        -- tom

        Comment


          #5
          RE: Accidentally deleting objects

          I think you figured it out, Tom. I see now what is causing it. If you have a custom menu defined, and assign it to the popup form, and that menu does not contain the Delete item, delete key control will default to control panel. I tried this on your database by removing the view menu entirely, then using an autoexec.bat to open up the form. What I probably can do is design a menu that does contain the delete option. I am trying that at the moment.

          Tom Lyon

          Comment


            #6
            RE: Accidentally deleting objects

            Tom, I'm surprised you're able to get a menu working with a popup form in the first place. The docs say that Alpha Five menus are not active when a form is opened in this 'style'.

            Check form.view() in ch. 13 of the Xbasic Ref. Manual.

            -- tom

            Comment


              #7
              RE: Accidentally deleting objects

              Tom, on further checking I think I see what's going on. When you open the called form as a popup, it's custom menu is *not* displayed. The menu for the called form is suppressed, just like the docs suggest.

              Instead, the menu you see at the top of the screen is the menu from previous screens, 'beneath' the called form, so to speak. Your Delete command must have been processed by the menu in the background somehow. Was this because you moved your mouse cursor out of the popup form to select an item off the displayed menu?

              Tom, I'm curious why you are opening these forms like this. Why use the popup style? I don't see any particular advantage over a regular form, or a dialog form.

              -- tom

              Comment


                #8
                RE: Accidentally deleting objects

                Okay, I have it figured out to the point that I can duplicate the problem. If there is a form (without custom menus or toolbars) open in the A5 frame and a popup is active above it, the delete key functions normally. If that form in the A5 frame is closed, leaving only the popup active, the delete key will function as if edit/delete was selected on the A5 frame and offer the option of deleting whichever object had focus last in control panel.

                This behavior doesn't occur in the runtime version, but the delete key doesn't function, either, when using the runtime version.

                I think this is a bug that could to be addressed.

                Tom Lyon

                Comment


                  #9
                  RE: Accidentally deleting objects

                  Tom, I daresay that most people don't close the current form when calling another, at least that's my practice. Since the calling form is open in the background after the called form opens, the problem doesn't occur.

                  I would hesitate to call what you are reporting a bug. It may be that the popup form is behaving exactly as it was intended.

                  I'm still curious, why do you use the 'popup' style, since it won't permit you to use custom menus?

                  -- tom

                  Comment


                    #10
                    RE: Accidentally deleting objects

                    TC said:

                    I'm still curious, why do you use the 'popup' style, since it won't permit you to use custom menus?
                    -----

                    Yer persistent :)

                    A long time ago, I got an idea. The idea was that I wanted a hot key to every form in my database, accessible from any other form. I created a popup form to act as a menu, activated by a hotkey. I also had one other popup form that I used (because I wanted it on top at all times). My users suggested that they would like to see more 'popup' forms because of ease of use, basically, and more window arrangement possibilities than forms contrained by the A5 frame. Most of my forms have been converted to popup style now. The few buttons they contain eliminates the need for menus and the hotkey to my popup menu makes navigating between forms a snap. If they're open, the menu shifts focus to it, if not, it loads the form. It sizes and positions the form at the user's preset configurations. One of the problems they voiced about the A5 frame was the need to contantly resize it to fit multiple forms. Now, there is no need. Forms open on the desktop free of any contraints. Users never need to reposition a window, once they save their custom configuration. The A5 frame is hidden from view, though not with the A5.hide() method. The users specify which forms load upon starting A5, which is also set by their configuration.

                    My methods are pretty off-beat. That's the beauty of A5, though..you can pretty much make it do whatever your heart desires. If you want to look to get a better idea, I'd be happy to share.

                    Tom Lyon

                    Comment


                      #11
                      RE: Accidentally deleting objects

                      Thanks. I've never used a popup form, and will now give them a second look.

                      I suppose that one reason I haven't used them is that my apps run full screen all the time. All forms are maximized. Hence, staying within the constraints of the Alpha Five frame has not been a problem.

                      -- tom

                      Comment


                        #12
                        RE: Accidentally deleting objects

                        Yah, that's fine for a lot of applications. Our needs require 10-15 open, active windows most of the time. One of the biggest challenges was to squeeze as much screen realestate out of the screen as possible. I find that a 19 inch monitor is almost adequate, but a 21 at 1600 x 1200 is just about what we need All the required A5 forms (5 forms, minimum) then fit nicely and 3/4 of the screen to be used for other things. Task switching and multitasking can be a real pain when using fullscreen mode, for us. We also have a few 'live' applications running between workstations that users need to see contantly to catch updates.

                        Tom Lyon

                        Comment

                        Working...
                        X