Alpha Video Training
Results 1 to 3 of 3

Thread: How to access other forms while the dialog from the current form is open?

  1. #1
    Member
    Real Name
    Roland Santiago
    Join Date
    Jan 2011
    Posts
    43

    Default How to access other forms while the dialog from the current form is open?

    I have a desktop test application that has 3 forms named Form_A, Form_B, and Form_C. Each form has a button that opens a dialog. When a dialog is open, I cannot access anything else outside the dialog. What I want to accomplish is, to be able to access Form_B or Form_C, while working on Form_A dialog. Each dialog must only restrict access to its parent form but allow access to other forms. How can I implement this? Is this ever possible in Alpha Five?

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: How to access other forms while the dialog from the current form is open?

    I assume you mean " Each form has a button that opens an xdialog.

    It is probably possible but will require some xbasic. Your xdialogs can be modal, as they are now, or modeless. You will need to change them to modeless. A form has an onactivate event. You will need to store the name(s) of the open xdialogs in a variable somehow designating the active one. The onactivate event for each form will need to check the active xdialog and if it is the "child" xdialog for the form, return focus to the xdialog. Otherwise the onactivate event will do nothing.

    Might be easier to rethink your design.

  3. #3
    Member
    Real Name
    Roland Santiago
    Join Date
    Jan 2011
    Posts
    43

    Default Re: How to access other forms while the dialog from the current form is open?

    My dialogs are not xdialogs but they are forms that open as popups (code below).

    dim frm as P
    frm = form.load("Form_AD","Dialog")
    frm.show()

    Anyway, your approach seems to work. I will try that.
    Thanks Stan.

Similar Threads

  1. Open forms with current record
    By LMT125 in forum Application Server Version 8
    Replies: 2
    Last Post: 01-25-2009, 03:15 PM
  2. Open form to, or close to current date
    By gveneman in forum Alpha Five Version 8
    Replies: 4
    Last Post: 12-10-2007, 11:26 PM
  3. open form to current record
    By Becky McNichols in forum Alpha Five Version 7
    Replies: 12
    Last Post: 03-22-2007, 01:06 PM
  4. Open form with no current record
    By fairclothjd in forum Alpha Five Version 6
    Replies: 11
    Last Post: 12-04-2004, 04:00 AM
  5. Tables still open with dialog forms
    By Raymond Lyons in forum Alpha Five Version 5
    Replies: 6
    Last Post: 01-16-2004, 04:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •