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 


Paint in your VDS App -- No DLL needed!

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Visual DialogScript 4 Source Code
View previous topic :: View next topic  
Author Message
FreezingFire
Admin Team


Joined: 23 Jun 2002
Posts: 3508

PostPosted: Fri Nov 15, 2002 9:02 pm    Post subject: Paint in your VDS App -- No DLL needed! Reply with quote

Here's a simple script that can be used to make a program to paint. It
can be improved, but this is the basic idea.

Sorry Garrett for stealing your Source Header Wink

Code:
REM    _____________________________________________________
REM   |\___________________________________________________/|
REM   | |                                                 | |
REM   | | SOURCE TITLE:    Paint                          | |
REM   | | ------------                                    | |
REM   | | SOURCE AUTHOR:   FreezingFire                   | |
REM   | | -------------                                   | |
REM   | | DATE:            15 November, 2002              | |
REM   | | ----                                            | |
REM   | | REQUIREMENTS:    Visual DialogScript 4.x        | |
REM   | | ------------                                    | |
REM   | | SOURCE STATUS:   Public Domain                  | |
REM   | | -------------                                   | |
REM   | | SOURCE DESCRIPTION:                             | |
REM   | | ------------------                              | |
REM   | |   Paint in your VDS app without a DLL           | |
REM   | | ------------------                              | |
REM   | | INSTRUCTIONS:                                   | |
REM   | | ------------------                              | |
REM   | |  Define thickness then run                      | |
REM   | |_________________________________________________| |
REM   |/___________________________________________________\|

Title Paint by FreezingFire
%%thickness = ---------------------

OPTION DECIMALSEP,"."
%%width = @sysinfo(screenwidth)
%%height = @sysinfo(screenheight)
  DIALOG CREATE,Paint Example,-1,0,%%width,%%height,COLOR WHITE
  DIALOG ADD,STYLE,COLOR,,,,BLACK,BLACK
  DIALOG SHOW
  DIALOG CURSOR,CROSS
  %%num = 1
:Evloop
  wait event,.01
  goto @event()
:Timer
 while @mousedown()
 %%num = @succ(%%num)
 DIALOG ADD,TEXT,PIXEL%%num,@diff(@mousepos(y),40),@diff(@mousepos(x),20),,,%%thickness,,COLOR
 wend
 goto evloop
:Close
  exit

_________________
FreezingFire
VDSWORLD.com
Site Admin Team
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 -> Visual DialogScript 4 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