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 


Bevelled window VDS 5.x all Win versions

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code
View previous topic :: View next topic  
Author Message
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Fri Jul 04, 2003 10:41 am    Post subject: Bevelled window VDS 5.x all Win versions Reply with quote

Did U ever want to add special styles to your app.
Here is a Bevelled window for VDS 5!.
Note that small cap style doesnt work properly in conjunction with this. I will add a different one for that.
Use at your own risk.

ENJOY !
Quote:

#----------------------------------------------------------------------------#
#Calling a Non-VDs dll; Bevelled window VDS 5+Win 98/ME/2k/XP----------------#
#----------------------------------------------------------------------------#
#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 Bevelled Window Demo by CodeScript
DIALOG CREATE,Bevelled Window Demo by CodeScript,-1,0,491,120,CLASS MYWIN,
REM SMALLCAP STYLE WILL NOT WORK THIS.
REM IF U WANT A Bevelled Window WITH SMALL CAPTION LOOK FOR ANOTHER DEMO.
DIALOG ADD,BUTTON,OK,80,194,100,24,Nice OK !
LOADLIB USER32
%H = @strdel(@WINEXISTS(#MYWIN),1,1)
IF %H
%H = @lib(user32,SetWindowLongA,INT:,%H,-20,852)
ELSE
ERROR -1
end
FREELIB USER32
DIALOG SHOW
REM RESIZE THE WINDOW A BIT FOR THE CHANGES TO OCCUR
REM ELSE STYLE WILL CHANGE ONLY AFTER A MINIMIZE ETC.
Window POSITION,#MYWIN,,,,150

:Evloop
wait event
goto @event()
:OKBUTTON

:Close
exit

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Jul 04, 2003 12:00 pm    Post subject: Reply with quote

Excellent excellent! You rock. Wink
_________________
FreezingFire
VDSWORLD.com
Site Admin Team
Back to top
View user's profile Send private message Visit poster's website
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Sat Jul 05, 2003 8:12 am    Post subject: Reply with quote

You can change 852 to:
1. $1000000000 to get bevelled window with Rt justified title.
2. $2000000000 to get non-bevelled window with Rt justified title.

_________________
Regards
- CodeScript
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Advanced VDS 5 Source Code All times are GMT
Page 1 of 1

 
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