Results 1 to 2 of 2

Thread: Visible window modal? [lil help plz]

  1. #1
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default Visible window modal? [lil help plz]

    Get this runtime error when I try to run my script with a form in.

    Code:
    [Runtime Error] : Exception: Cannot make a visible window modal.
    I code alot in delphi so understand about modal forms and this is confuzling me.

    SCAR Code:
    procedure SafeInitialiseForm;
    var
    v: TVariantArray;
    begin
    setarraylength(V, 0);
    ThreadSafeCall('InitialiseForm', v);
    end;

    procedure ShowFormModal;
    begin
    frmDesign.ShowModal;
    end;

    procedure SafeShowFormModal;
    var
    v: TVariantArray;
    begin
    setarraylength(V, 0);
    ThreadSafeCall('ShowFormModal', v);
    end;

    procedure SetupForm;
    begin
    SafeInitialiseForm;
    SafeShowFormModal;
    end;

    begin
    SetupForm;
    end.

    No need to post the Initialise Form procedure or variables :P

    Help would be greatly appreciated.

  2. #2
    Join Date
    Feb 2007
    Location
    SparklesProd.com
    Posts
    2,406
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    My bad, should have searched first, Have to change frmDesign.Visible to false.

    Seen many other people with this error, hope it helps them too.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do i get it to the correct window?
    By your mom in forum OSR Help
    Replies: 1
    Last Post: 12-20-2008, 08:36 PM
  2. Old login window?
    By Ethien in forum OSR Help
    Replies: 4
    Last Post: 10-18-2008, 07:08 PM
  3. activate window
    By hvitekrist in forum OSR Help
    Replies: 14
    Last Post: 01-14-2008, 06:26 AM
  4. TOP - 50 Stats user now visible from main page.
    By WT-Fakawi in forum News and General
    Replies: 10
    Last Post: 10-12-2007, 07:03 AM
  5. [Runtime Error] Cannot Make a Visible...........
    By dudesareus in forum OSR Help
    Replies: 4
    Last Post: 04-20-2007, 09:57 PM

Posting Permissions

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