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 opening outside Alpha 5

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

    Form opening outside Alpha 5

    Hi,

    I have come across this issue where when I open a form, it opens outside the boundaries of Alpha 5. I have recreated it in the attached zip. If you push button 1 then the form is opened outside Alpha 5 and if you push button 2 then it works inside of Alpha 5.

    A) The process for Button1 is:-
    1) form 1 is hidden.
    2) form 2 is opened but hidden
    3) the form "restrict enter" is set to .f.
    4) a new record is added.
    5) the form "restrict enter" is set to .t.
    6) form 2 is unhidden.

    B) The process for button 2 is:-
    1) form 1 is hidden
    2) form 2 is opened

    For A the form open outside Alpha 5 but for B the form opens in Alpha 5.

    Why is this and what can be done to stop it happening?

    Paul
    form 2 closes and form 1 is then unhidden.

    Q.

    #2
    Re: Form opening outside Alpha 5

    Paul

    When you press Button 1 you are opening form2 as a dialog. The properties for form two "Window" was set to Left 0 top 0. That is why it was set "outside" the A5 Window - it was set to start at the top at 0 inches and at left 0 inches.

    Open form2 in design. Click on white space on form to bring up the form properties. Click on the Windows tab. You will see that you have the top and left set to 0 inches. If you want to show the dialog form in the middle of the screen then instead of inches choose default.

    If you want to open it as a regular form, then go into the action script for button 1 , click on the second Action script "open a form" go to options and change the hidden dialog to hidden normal (see thumbnail) and it will open the same as pushing button2.

    Tom Baker

    Comment


      #3
      Re: Form opening outside Alpha 5

      Hi,
      Although in this case Tom is most likely correct, I do want to point out another possible glitch that still affects a current application I have...I even started a similar thread a while back with no resolution other than setting each and every dialog form's location with xbasic. I have not yet tried recreating any of the troublesome forms, but doing so usually is a fix for a corrupted form and to have several manifest the exact same symptoms would imply to me that something other is the cause.

      Maybe eventually the cause will be found....and is among the reasons I posted a similar issue and tried solutions.
      Mike
      __________________________________________
      It is only when we forget all our learning that we begin to know.
      It's not what you look at that matters, it's what you see.
      Henry David Thoreau
      __________________________________________



      Comment


        #4
        Re: Form opening outside Alpha 5

        Thanks for the input. The point I am trying to make is that if you open a form in a hidden state, then activate it, it does not follow the expected way of being displayed.

        If you want to create an SDI application then this feature inhibits the this.

        The example I have presented demonstrates this. Both buttons open the same form. The difference is that one goes through this hidden stage first.

        I am tempted to suggest this is a bug. Before I register it what do you think.

        Paul

        Comment


          #5
          Re: Form opening outside Alpha 5

          Paul

          You now have me confused.

          The original question was that a form was opening outside of Alpha5. Now the questions is that there is a problem with opening a form because the form was hidden.

          The original questions was answered I thought - if you performed the changes changing the positions on the left and top of form 2 to say left 2 Top 1 inches - the form no longer opens outside the a5 window - OR - change the action scripting for opening that form from Hidden - Dialog to Hidden-Normal after changing the default windows of that form form inches to default.

          On button1 I would also add an action script after hiding form1 to hide the control panel also (you already have code (AS) in there to show the control panel afterword.

          As far as the SDI look, you have the small boxes turned off in the database properties and they continue to be off in the forms as they now stand.

          I think the real problem, is the clunky nature of the forms showing then hiding as when you push button1a, Form1 hides and then a blank box appears with FORM2 as a title before Form2 opens (shows).

          With the changes I suggested, the forms act as they should so I don't think that it is a bug - but maybe I am missing something in your question. Maybe you will hear from one of the big guys who know more about A5 then I ever will.

          Tom Baker

          Edit: I usually do not have the window bar showing, so there lies a problem with understanding your question. When you push button 1, form1 is hidden and does not show in the window bar - however, when you push button1 a, form1 is not hidden and it shows in the window bar along with form2 - so therefore it basically overides the checking the box in the database properties to hide the small icons to emulate SDI. You could change back to form1 without exiting form2.

          I tried this and it seemed to work, again with the changes outlined above about placement of the dialog form. On button1a move the action scripting to hide form1 to after opening form2. This will open form2 and then hide form1, enforcing the SDI emulation.

          I hope I understand you question in this edit.
          Last edited by Tbaker; 07-27-2008, 11:06 AM. Reason: New Information

          Comment


            #6
            Re: Form opening outside Alpha 5

            Tom,

            Sorry for the confusion with the windows bar I left in the example. It was not meant to be taken as relevant. However, using it I have now worked out what was happening. And now have the result I wanted.

            I had selected Hidden, Dialog and not Hidden, Normal which it should have been.

            As with all these issues taking an alternative view can be immensely useful.

            Thanks Paul

            Comment

            Working...
            X