|
-
March 26th, 1999, 05:37 AM
#1
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
-
March 29th, 1999, 04:20 PM
#2
Re: How do I arrange Windows ?
Use .Cascase .Tile properties
-
March 30th, 1999, 02:13 AM
#3
Re: How do I arrange Windows ?
Is it a Form property ? ( meaning Me.Cascade.Tile ) because I couldn't find one
Anand
-
March 30th, 1999, 04:12 AM
#4
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
-
March 30th, 1999, 06:57 AM
#5
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|