CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7

Thread: Browser Window

  1. #1
    Join Date
    Apr 2002
    Posts
    49

    Question Browser Window

    All,
    I don't usualy write scripting code but I am working on a project that requiers me to minimize the browser window programaticaly.

    Does anyone know how to minimize the browser with VBScript
    or JavaScript??



    This forum is great, thanks to all??



    MPenland

  2. #2
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99

    Re: Browser Window

    Originally posted by Michael Penland
    All,
    I don't usualy write scripting code but I am working on a project that requiers me to minimize the browser window programaticaly.

    Does anyone know how to minimize the browser with VBScript
    or JavaScript??
    Hmm..which kind of situation requires to minimize the window? Could you be a little more specific, and I think we'll find a suitable solution for your problem.

    Do you have to hide window for while, or set focus off (blur) from window instance?
    Zvona - First aid for client-side web design

  3. #3
    Join Date
    Apr 2002
    Posts
    49
    The situation is that I am writting chromeless window interfaces to my VC++ moduals and want the user to be able to minimize.

    I Create my own titlebar type minimize buttons. That is what I want the minimize functionality for.


    Thanks

    MGP

  4. #4
    Join Date
    Jan 2002
    Location
    Helsinki, Finland
    Posts
    99
    Oh, I understand. Well, there's no standard methods for minimizing window. I tried to search from MSDN Library about window-object manipulation, but no references regarding to minimization were found.

    One thing I figured out, is blurring the window instance. This however, requires that other window instance exists (where to focus on).

    Another thing would be like :
    Code:
    <script type="text/javascript">
    function zMinimize()
    {
     window.resizeTo(0,0);
     window.moveTo(0,screen.height-50);
    }
    </script>
    Above function will resize your window instance to zero (only chrome will be seen) and re-position it to lower-left corner. I've seen some applications doing this as minimization.

    Hope at least one of my advices help you to find a solution.
    Zvona - First aid for client-side web design

  5. #5
    Join Date
    Apr 2002
    Posts
    49
    I have looked at this approach and wanted to see if
    I could minimize to the task bar.

  6. #6
    Join Date
    Apr 2002
    Posts
    49
    Am I correct in assuming that the functionality of the title bar is governed by the operating system not the browser.


    MGP

  7. #7
    Join Date
    Nov 2001
    Location
    India
    Posts
    20
    This link has some code related to chromeless window

    http://www.dynamicdrive.com/dynamici...chromeless.htm

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured