Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 906
  • Last Modified:

draw lines and ovals dinamically

I need to draw a bunch of lines dinamically based on the coords from the results of a SQL statement,
please help me.
0
eliaslopezgtz
Asked:
eliaslopezgtz
  • 2
  • 2
1 Solution
 
SylvainPouliotCommented:
If you want to have it in a datawindow
Here's the syntax:

dw_1.Modify( "create line(band=<Detail, Footer, Header, Header.<group #>, Summary, Trailer.<group #>, Background, Foreground> pointer='<Arrow!, Cross!, HourGlass!, IBeam!, Icon!, Size!, SizeNESW!, SizeNS!, SizeNWSE!, SizeWE!, UpArrow!, or cursor filename (with path)>' moveable=<0 - False, 1 - True> resizeable=<0 - False, 1 - True> x1='<an integer>' y1='<an integer>' x2='<an integer>' y2='<an integer>' name=<string> tag='<string>' pen.style='<0 - Solid, 1 - Dash, 2 - Dot, 3 - DashDot, 4 - DashDotDot, 5 - Null>' pen.width='<an integer>' pen.color='<a long>' background.mode='<0 - Opaque, 1 - Transparent>' background.color='<a long>')")

OR

If you want a line object directly in a window:
line l_line
openuserobject ( l_line, "line", x, y  )
l_line.x2 =
l_line.y2 =...

0
 
eliaslopezgtzAuthor Commented:
i need to create several amount of lines
and i do not know how many they are going to be.
so.. i can't declare them

line l_line

i need on the fly declaration and use.
0
 
SylvainPouliotCommented:
If you don't need a reference to them
line l_line
will be ok, because  openuserobject will create another line each time.

If you need referencing use an array:
line i_line[]
and declare it in the instance variables
0
 
eliaslopezgtzAuthor Commented:
i get this error...
type of actual parameter cannot be ancestor of formal reference parameter type
please help
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now