?
Solved

draw lines and ovals dinamically

Posted on 2003-03-29
4
Medium Priority
?
899 Views
Last Modified: 2013-12-26
I need to draw a bunch of lines dinamically based on the coords from the results of a SQL statement,
please help me.
0
Comment
Question by:eliaslopezgtz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 2

Expert Comment

by:SylvainPouliot
ID: 8231830
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
 

Author Comment

by:eliaslopezgtz
ID: 8240643
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
 
LVL 2

Accepted Solution

by:
SylvainPouliot earned 150 total points
ID: 8240665
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
 

Author Comment

by:eliaslopezgtz
ID: 8254673
i get this error...
type of actual parameter cannot be ancestor of formal reference parameter type
please help
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
Suggested Courses

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question