CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 1999
    Posts
    57

    How do I arrange Windows ?



    I open multiple windows in VB. When I minimize one of them, the other windows are arranged in a haphazard manner. How do I tile them properly ? I tried using some APIs but was not successful .


    Anand

  2. #2
    Join Date
    Mar 1999
    Posts
    2

    Re: How do I arrange Windows ?



    Use .Cascase .Tile properties




  3. #3
    Join Date
    Apr 1999
    Posts
    57

    Re: How do I arrange Windows ?



    Is it a Form property ? ( meaning Me.Cascade.Tile ) because I couldn't find one


    Anand

  4. #4
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: How do I arrange Windows ?



    Hi


    There are several ways of accomplishing this using VB. You can use the following Win32 Api's :


    CascadeWindows

    TileWindows

    BeginDeferWindowPos

    DeferWindowPos

    EndDeferWindowPos


    CascadeWindows:


    This routine takes an array of HWNDS and cascades them on the desktop


    TileWindows :


    Pretty obvious what this one does


    BeginDeferWindowPos

    DeferWindowPos

    EndDeferWindowPos


    These three API calls are used together to set the position of an number of windows, the windows are not actually moved until the final 'EndDeferWindowPos' is called - this makes it an extremely fast method of moving/arranging your windows on the desktop (I use it all the time here)


    If you need any more help on these API calls, just give a holler


    Regards


    Chris Eastwood


    Codeguru - the website for developers

    http://www.codeguru.com/vb




  5. #5
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: How do I arrange Windows ?





    The MDI form also had a method .Arrange and which takes 3 (4?) values for

    Cascade,Tile,Arrange icons etc.



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