|
-
May 15th, 2002, 11:02 PM
#1
Thread Starter
Hyperactive Member
API call
Is there any API calls available if I would like to tile or cascade a number of windows?
-
May 16th, 2002, 05:40 AM
#2
Frenzied Member
I assume
VB Code:
Private Declare Function CascadeWindows Lib "user32" Alias "CascadeWindows" (ByVal hwndParent As Long, ByVal wHow As Long, ByVal lpRect As RECT, ByVal cKids As Long, lpkids As Long) As Integer
is what you're looking for, but I've no idea how to use it
-
May 16th, 2002, 06:57 AM
#3
Hyperactive Member
No there isn't. You have to move them all manually.
-
May 16th, 2002, 07:14 AM
#4
Is this for forms within an MDI form?
If it is just use: Me.Arrange <value> where <value> is one of these:
vbCascade
vbTileHorizontal
vbTileVertical
vbArrangeIcons
eg:
Me.Arrange vbCascade
-
May 16th, 2002, 08:26 AM
#5
Thread Starter
Hyperactive Member
ok, thanx ppl, u mean that works for mdi onli?
wat about the tiling effect?
-
May 16th, 2002, 08:29 AM
#6
Thread Starter
Hyperactive Member
wat about the api call mentioned by rick bull?
-
May 16th, 2002, 08:43 AM
#7
Frenzied Member
Private Declare Function CascadeWindows Lib "user32" (ByVal hwndParent As Long, ByVal wHow As Long, ByVal lpRect As RECT, ByVal cKids As Long, lpkids As Long) As Integer
To tile the desktop windows with this:
VB Code:
Call CascadeWindows(vbNull, 0, vbNull, 0,vbNull)
See MSDN for more info on this API call...
HTH,
Duncan
-
May 18th, 2002, 09:18 AM
#8
Thread Starter
Hyperactive Member
anybody know wat the .tag property field is for?
-
May 18th, 2002, 09:35 AM
#9
Hyperactive Member
Last edited by ChiefRB; May 18th, 2002 at 09:39 AM.
-
May 18th, 2002, 09:59 AM
#10
Thread Starter
Hyperactive Member
i see, so its like a temporary place to store anything?
-
May 18th, 2002, 12:17 PM
#11
Hyperactive Member
It's not temporary. It's just as permanent as all the other object properties, but yes, it will store any string you like.
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
|