forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Glue to Desktop?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sat Sep 26, 2009 6:26 pm    Post subject: Glue to Desktop? Reply with quote

Does anyone remember what the file name was of the example that showed how to clue a vds window to the desktop?
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sat Sep 26, 2009 11:04 pm    Post subject: Reply with quote

What do you mean by glue a VDS window to the desktop?
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Sep 27, 2009 3:10 am    Post subject: Reply with quote

There was an example once here that I believe put your vds app like under the icons of the desktop, but on top of the wallpaper. Your program could not be brought to the front.. Not even sure you could access the GUI in this state either.
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
briguy
Contributor
Contributor


Joined: 09 Aug 2007
Posts: 79

PostPosted: Sun Sep 27, 2009 4:31 am    Post subject: Reply with quote

That was codescripts. The transparent window example. You can either make it transparent or not.
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Sep 27, 2009 7:09 am    Post subject: Reply with quote

Great, thanks Smile
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Sep 27, 2009 7:13 am    Post subject: Reply with quote

Hmmm, that doesn't seem to be it either Sad
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sun Sep 27, 2009 12:59 pm    Post subject: Reply with quote

Not sure about under the icons, but you could position it at the bottom of the z-order and disable the dialog.
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun Sep 27, 2009 4:11 pm    Post subject: Reply with quote

Have you tried using the SetParent API function to set the desktop window as the parent? I have done that with individual controls however I am not sure if it would work with top level windows or not?
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Sun Sep 27, 2009 4:20 pm    Post subject: Reply with quote

Garrett,
Here is the Thread you want.

http://www.vdsworld.com/forum/viewtopic.php?t=1908&highlight=setparent

or you can look at this one.

http://www.vdsworld.com/forum/viewtopic.php?t=2177&highlight=setparent

have fun Wink

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Sun Sep 27, 2009 6:04 pm    Post subject: Reply with quote

I finally found what I was looking for.. The file was named:
CodeScript - API_WindowUnderDesktop.dsc

Not sure if that's it's original name or the name I gave it when organizing my files here.

Thanks,
~Garrett

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sun Sep 27, 2009 6:06 pm    Post subject: Reply with quote

I'm curious to see it now, care to share the code?
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Sep 28, 2009 5:08 am    Post subject: Reply with quote

Hmmm, let me see if I can find it here on VDS World.
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Sep 28, 2009 5:12 am    Post subject: Reply with quote

Nope, couldn't find it on VDS World. So here's the code:

Code:
This is a fancy dialog window that is placed such that it is behind the desktop for keybord/mouse focus but can be visible ontop(refer to my previus examples for ontop,notontop and transparent window.
The OUTSTANDING features of this window:
1.The window behind(or desktop icons ) this transparent window can be selected and worked on as if this window did never exist.
2.Even text on the window doesnot obscure focus !(not the case with native VDS invisible style).
3. Transparency can be adjusted and background can be changed !
Utility:
Can be used for:
1.News updates
2.Sticky notes/Notifications.
3.Fancy media player
4.And things You can imagine - Sky is the limit for Ur imagination! he he.

Please note that the script uses non VDS dll and API calls.
Use at your own risk.
I have tested on WinXP - should work on win 2k+.(never Try on Win98/Me)


Code:
#----------------------------------------------------------------------------#
#Calling a Non-VDs dll; Just Great window VDS 5+Win2k+-----------------------#
#----------------------------------------------------------------------------#
#Author: CodeScript---------------------------------------------------------#
#----------------------------------------------------------------------------#
#Copyright:You can remove this info while(if) Using this code in your app.---#
#----------------------------------------------------------------------------#
REM USE AT YOUR OWN RISK !!
REM MISTAKES MADE WHILE USING A NON VDS DLL MAY INVITE A VDS/SYSTEM CRASH.
REM SAVE YOUR WORK BEFORE RUNNING/DEBUGGING THIS SCRIPT.
REM IF ANY TIME FORM BECOMES INVISIBLE PRESS F6 TO STOP THE DEMO
Title OOOPS !
REM CHECK THE WINDOWS VERSION AND DIASALLOW THOSE BELOW WIN 2K.
%%WINDOWVERSION = @substr(@SYSINFO(WINVER),1,1)
If @greater(5,%%WINDOWVERSION)
warn SORRY ! This Script uses Transparent windows supported only on Win2000 and above !
exit
end
%%ico = @windir()\explorer.exe
%%taskclick = 0

Title Just Great window Demo by CodeScript
DIALOG CREATE,Just Great window,200,200,195,121,CLASS MYWIN,SNAP,ONTOP,INVISIBLE,NOTITLE
REM YOU CAN CHNAGE THE COLOR OF STYLE TO CHANGE THE FONT COLOR
DIALOG ADD,STYLE,STYLE1,,,,,FF0080
DIALOG ADD,STYLE,STYLE2,,,B,,
Dialog add,TASKICON,TaskIcon,%%ico,Just Great
REM AVOID EDITING THE USER32.DLL DECLARATIONS AND CONSTANTS TO AVOID CRASH.
LOADLIB USER32
%H = @strdel(@WINEXISTS(#MYWIN),1,1)
IF %H
%I = @lib(user32,GetWindowLongA,INT:,%H,-20)
%I = @lib(user32,SetWindowLongA,INT:,%H,-20,$80000)
%I = @lib(user32,SetLayeredWindowAttributes,INT:,%H,0,160,$2)
%I = @lib(user32,SetWindowLongA,INT:,%H,-20,-4000)
ELSE
ERROR -1
end
FREELIB USER32
REM CHANGING THE COLOR OF GRADIENT CHANGES THE BACKGROUND
DIALOG ADD,GRADIENT,GRADIENT1,-1,0,195,123,F2EFEA,WHITE,,BOTTOMTOTOP
DIALOG ADD,TEXT,TEXT1,13,79,,,Breaking news !!,,TRANSPARENT
DIALOG ADD,TEXT,TEXT2,34,88,,,Sticky notes !!,,TRANSPARENT
DIALOG ADD,TEXT,TEXT4,96,10,,,Sky is the limit for Ur Imagination !!,,TRANSPARENT
DIALOG ADD,TEXT,TEXT3,55,77,,,Program Status !!,,TRANSPARENT
DIALOG ADD,TEXT,TEXT5,76,81,,,Media Player !!,,TRANSPARENT,STYLE2
DIALOG SHOW


:Evloop
wait event
goto @event()

:OKBUTTON
LOADLIB USER32
%H = @strdel(@WINEXISTS(#MYWin),1,1)
if %H
%H = @lib(user32,SetForegroundWindow,BOOL:,%H)
else
ERROR -1
end
FREELIB USER32
END
window normal,#MYWIN
goto EVLOOP

:TaskIconCLICK
if @equal(@click(b),RIGHT)
dialog popup,Hide|Show|Ontop|DesktopOnly|-|Exit
else
goto Check
end
goto EVLOOP

:check
REM CHECK THE WINDOW STATUS USING A VARIABLE AND TOGGLE ACCORDINGLY
IF @EQUAL(%%taskclick,0)
%%taskclick = 1
goto hideMenu
ELSE
%%taskclick = 0
goto ShowMENU
END

:HideMENU
window hide,#MYWIN
goto EVLOOP

:ShowMENU
LOADLIB USER32
%H = @strdel(@WINEXISTS(#MYWin),1,1)
if %H
%H = @lib(user32,SetForegroundWindow,BOOL:,%H)
else
ERROR -1
end
FREELIB USER32
END
window normal,#MYWIN
goto EVLOOP

:OntopMENU
%%taskclick = 0
window ontop,#MYWIN
window normal,#MYWIN
goto EVLOOP

:DesktopOnlyMENU
REM THIS IS NOTHING BUT NOTONTOP OPTION
LOADLIB USER32
%H = @strdel(@WINEXISTS(#MYWin),1,1)
if %H
%H = @lib(user32,SetWindowPos,BOOL:,%H,-2,0,0,0,0,3)
else
ERROR -1
end
FREELIB USER32
END
goto EVLOOP

:ExitMENU

:Close
exit

_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Mon Sep 28, 2009 12:47 pm    Post subject: Reply with quote

Oh, that's the Just Great Window example toward the middle of his page:
http://codescript.vdsworld.com/Webpages/SourceCodes.htm

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Mon Sep 28, 2009 2:44 pm    Post subject: Reply with quote

heh, why didn't I think of just checking his page...
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group