Announcement

Collapse
No announcement yet.

Built form without see it on the screen

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

  • Built form without see it on the screen

    It happens with slow computers that when we build a form it appears slowly. We can build the form in memory without see it on the screen and then see full display once built?
    mailto:[email protected]
    From Italy.

  • #2
    Sure, that's easy! {smile} Just use PAGE to set the active page to a different page than the visible page. Then, print to the active page (which is invisible), until you're done. Finally, use PCOPY to copy it the visible page, and use PAGE to set the active page back to the visible page.

    Best regards,

    Bob Zale

    Comment


    • #3
      Thanks Bob for the excellent suggestion.
      One other thing: when a program starts, before you run some command it opens a window. We can avoid that opens the window before you run some commands?
      mailto:[email protected]
      From Italy.

      Comment


      • #4
        #CONSOLE OFF at the beginning will stop the Console window from opening.
        Last edited by Jerry Fielden; 12 Sep 2009, 08:40 AM.

        Comment


        • #5
          Originally posted by Jerry Fielden View Post
          #CONSOLE OFF at the beginning will stop the Console window from opening.
          in this way then I can not open the Console. I would lock the console to create the page, open the console and display the page. In order not to see the console while I'm creating the page.
          mailto:[email protected]
          From Italy.

          Comment


          • #6
            Maybe you can use console off as suggested and then on demand use AllocConsole() and FreeConsole() API ??
            hellobasic

            Comment


            • #7
              Originally posted by Edwin Knoppert View Post
              Maybe you can use console off as suggested and then on demand use AllocConsole() and FreeConsole() API ??
              Thanks, but it don't run...
              mailto:[email protected]
              From Italy.

              Comment


              • #8
                > Maybe you can use console off as suggested and then on demand use
                > AllocConsole() and FreeConsole() API ??

                Thanks, but it don't run...
                And I would not spend any time trying to make it work, either.

                I seriously doubt the PB/CC compiler was designed to handle any "CONSOLE..." commands for consoles it does not create itself, which is not unreasonable at all IMO.

                MCM
                Michael Mattias
                Tal Systems (retired)
                Port Washington WI USA
                [email protected]
                http://www.talsystems.com

                Comment


                • #9
                  You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
                  Anyway, "not run" does not help much..
                  hellobasic

                  Comment


                  • #10
                    Originally posted by Edwin Knoppert View Post
                    You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
                    Anyway, "not run" does not help much..

                    sorry, I meant nothing happens, I applied the suggestion but the window is hidden and not displayed.
                    mailto:[email protected]
                    From Italy.

                    Comment


                    • #11
                      You may be right but since we are talking about 3 std handles applied to the app i assumed no problem.
                      Not really. In PB/CC, uses of STDIN, STDOUT or STDERR refer to the handle AT THE TIME THE PROGRAM STARTED, NOT WHAT IT CURRENTLY IS. That is, any in-process redirection is igored. Except for STDERR, which is always the console and cannot be re-directed intrinsically... which is why this demo exists:

                      Redirect 'stderr' to a file with PB/CC November 2008

                      MCM
                      Michael Mattias
                      Tal Systems (retired)
                      Port Washington WI USA
                      [email protected]
                      http://www.talsystems.com

                      Comment

                      Working...
                      X