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 


Need Help For VdsUg.dll - 2

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Tue Mar 08, 2005 4:22 pm    Post subject: Need Help For VdsUg.dll - 2 Reply with quote

Hi,
I Have to draw a vertical line long 200 pixel, But like always don't Understand how Embarassed

For me there is an error in the function that draw the line or in the help file.

Someone can Help me Please?

My code is:
Code:

# x1 =10  y1=0  x2=10  y2= 200
  Ug Draw,Line,Solid,10,0,10,200


But not draw a vertical line
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 08, 2005 4:43 pm    Post subject: Reply with quote

Hi Tdk161,

From what I'm reading from the vdsug.dll help file you have an extra
parameter.

Try this->
Code:

  UG DRAW,LINE,10,0,10,200


I didn't see anything about the line style in the help file, vdsug.txt. I hope
this helps. Smile One other thing to note, your dialog needs to have the PAINT
style and you should also have a :PAINT label in your script as well.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Tue Mar 08, 2005 5:15 pm    Post subject: Reply with quote

Hi Tdk161,

If you want or need to change the line color, style, or size you need to use
Code:

  UG DRAW,PEN,<color>,<style>,<size>

before calling
Code:

  UG DRAW,LINE,<x1>,<y1>,<x2>,<y2>

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Mac
Professional Member
Professional Member


Joined: 08 Jul 2000
Posts: 1585
Location: Oklahoma USA

PostPosted: Tue Mar 08, 2005 7:51 pm    Post subject: Reply with quote

Here are the DRAW commands for VDSug.dll (this is from the text help file):
_____________________________________________________________________________________________
Code:

  DRAW COMMANDS: (most require additional parameters, vars may be used)

    PEN        Sets pen color, style, width if desired.
               Style: SOLID DASH DOT DASHDOT DASHDOTDOT
               Colors: VDS3 color names (no BACKGRND,FOREGRND),
                       or Hex format 0x00FFFFFF (any color).
               Width starts at 1 (SOLID is only style above 1).
               Retains settings unless changed.
               Example: UG DRAW,PEN,RED,SOLID,2

    FILL       Sets fill (brush) color to fill ellipses, etc.
               Colors: VDS3 color names (no BACKGRND,FOREGRND),
                       or Hex format 0x00FFFFFF (any color).
               Retains settings unless changed.
               Example: UG DRAW,FILL,YELLOW

    FONT       Sets font color, style, size, font type (background
               is always transparent).
               Colors: VDS3 color names (no BACKGRND,FOREGRND),
                       or Hex format 0x00FFFFFF (any color).
               Styles: N = normal, B = bold,
                       NI = normal italics, BI = bold italics.
               Size: Desired size of font.
               Retains settings unless changed.
               Either use color only, or include ALL parameters.
               Example1: UG DRAW,FONT,RED
               Example2: UG DRAW,FONT,RED,N,24,"Times New Roman"

    TEXT       Draws text (240 chars max) in current font at x1 y1.
               Parenthesis, commas, etc. must be enclosed in quotes.
               Example: UG DRAW,TEXT,10,40,"This is, (a test!)"

    FLOOD      Floods the current area starting at x1,y1 with the
               current FILL (brush) color. You may optionally name
               the color that is being replaced, otherwise the
               pixel color at x1, y1 determines replacement. The
               area is flooded in all directions until a different
               colored boundary (line, etc.) is reached.
                 Replace pixel color at x1, y1:
                   Example: UG DRAW,FLOOD,10,30
                 Name white pixels as ones to be replaced:
                   Example: UG DRAW,FLOOD,10,30,WHITE

    LINE       Draws line from x1 y1 to x2 y2.
               Example: UG DRAW,LINE,10,30,280,180

    ARC        Draws Arc within rectangle upper left x1 y1
               lower right x2 y2, with first radial endpoint xy
               at r1,r2 and second radial endpoint xy at r3,r4.
               Sum of coordinates should not exceed 32,767.
               Example:
                    UG DRAW,ARC,120,120,200,200,120,120,200,200
               Tip: To see how ARC works, also draw a rectangle
                    using the first 4 parameters of your arc.

    PIE        Draws Pie within rectangle upper left x1 y1
               lower right x2 y2, with first radial endpoint xy
               at r1,r2 and second radial endpoint xy at r3,r4.
               Sum of coordinates should not exceed 32,767.
               Example:
                    UG DRAW,PIE,120,120,200,200,120,120,200,200
               Tip: To see how PIE works, also draw a rectangle
                    using the first 4 parameters of your pie.

    RECTANGLE  Draws rectangle from x1 y1 upper left
               to x2 y2 lower right.
               Example: UG DRAW,RECTANGLE,10,30,280,180

    ROUNDRECT  Draws rounded rectangle from x1 y1 upper left to
               x2 y2 lower right. Corner ellipse width and height
               are optional (if using height, width is required),
               defaults are 30.
                 Example1: UG DRAW,ROUNDRECT,10,30,280,180
               Set corner ellipse width only:
                 Example2: UG DRAW,ROUNDRECT,10,30,280,180,30
               Set corner ellipse width and height:
                 Example3: UG DRAW,ROUNDRECT,10,30,280,180,30,10

    ELLIPSE    Draws ellipse from x1 y1 upper left to to x2 y2
               lower right. If x1 y1 x2 y2 is square, draws a
               circle, otherwise draws an ellipse.

               Example: UG DRAW,ELLIPSE,60,80,280,185

    OFFSCREEN  For fast flicker free erase/redraw animations.
               Allows drawings to be done offscreen before showing
               them. You must then call ONSCREEN to show the
               accumulated drawings (a PAINT event will also
               show all accumulated drawings).
               Example: UG DRAW,OFFSCREEN

    ONSCREEN   Deactivates the OFFSCREEN command and shows all
               drawings created during OFFSCREEN.
               Example: UG DRAW,ONSCREEN

    SAVESCREEN updates the copy of your screen in memory. Use
               this after normal VDS routines that change text,
               images, etc. Otherwise the REFRESH command can
               not perform a true update of your program window.

    REFRESH    Refreshes (updates) your drawings automatically
               when the window is moved or minimized (use under
               the ":PAINT" label). Eliminates the need to have
               draw routines under the paint label.
               Example: UG DRAW,REFRESH


Cheers, Mac Smile

_________________
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
View user's profile Send private message Send e-mail
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Wed Mar 09, 2005 9:27 pm    Post subject: Reply with quote

Embarassed Embarassed Embarassed Embarassed
Ehm...... I'm Thinking To Change my glasses because i don't see very well....

many thak to all guys....

Bye
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Wed Mar 09, 2005 9:36 pm    Post subject: Reply with quote

Hi Tdk161,

I was glad I could help Wink And don't feel bad about overlooking
something, it happens to all of us. Rolling Eyes Smile

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Wed Mar 09, 2005 9:56 pm    Post subject: Reply with quote

Thank's ShinobiSoft Laughing
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help 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