| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Feb 05, 2003 7:43 pm Post subject: Clip Desktop |
|
|
Is there any way using VDS (with or without a DLL) that the desktop screen area can be clipped? By clipped, I mean the same what the windows task bar (when ontop and not autohide) clips the screen so when a window is maximized the task bar stays in view. Know what I mean?
Thanks, _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Wed Feb 05, 2003 8:41 pm Post subject: |
|
|
I've been wanting to know this one for a long time also. Tried figuring it
out, but haven't had any luck over the last few years.
-Garrett |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Feb 05, 2003 8:45 pm Post subject: |
|
|
Well, If I find anything, I'll let you know!  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Mac Professional Member

Joined: 08 Jul 2000 Posts: 1585 Location: Oklahoma USA
|
Posted: Thu Feb 06, 2003 2:15 am Post subject: |
|
|
If the taskbar is showing, ya should be able to search for
either the taskbar or the systray. These examples check
for "tray" in the @winatpoint() window class name.
These search top to bottom - the top example trips on the
first title containing "tray", the second trips on the last one
(which might not be so good if the user has the taskbar at
the top of the screen).
If ya know the actual class names of different OS taskbars
or systrays, ya could put those in a list and check %%target
against them with the FIRST example.
If the taskbar is NOT showing (or is partially covered) you'll
wind up with the same size as the current app. But at least
you won't be the only one...
Maybe it'll give ya some ideas...
__________________________________________________________________________________________________________________________
| Code: |
rem -- This one gets FIRST title (top to bottom) that contains "tray" --
%x = @pred(@sysinfo(SCREENWIDTH))
%y = 0
REPEAT
%%target = @winclass(@winexists(@winatpoint(%x, %y)))
if @greater(@pos("tray", %%target), 0)
%%systray_top = %y
end
%y = @succ(%y)
UNTIL %%systray_top @greater(%y, @sysinfo(SCREENHEIGHT))
INFO Class name = %%target@tab()@cr()@cr()SysTray top should be at %%systray_top@tab()
rem -- This one gets LAST title (top to bottom) that contains "tray" --
%x = @pred(@sysinfo(SCREENWIDTH))
%y = 0
REPEAT
%%target = @winclass(@winexists(@winatpoint(%x, %y)))
if @both(@greater(@pos("tray", %%target), 0), @not(@equal(%%oldtarget,%%target)))
%%systray_top = %y
%%oldtarget = %%target
end
%y = @succ(%y)
UNTIL @greater(%y, @sysinfo(SCREENHEIGHT))
INFO Class name = %%oldtarget@tab()@cr()@cr()SysTray top should be at %%systray_top@tab()
|
Cheers, Mac  _________________ VDSug.dll does file IO, check/disable menu items,
non-VDS dlls, draw functions and more...
Free download (30k dll size) at:
http://www.vdsworld.com/download.php?id=361
 |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|