473,507 Members | 2,447 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drawing squares and lines beteen them

73 New Member
I have a problem to solve.I want to draw squares and lines connecting them.The number of squares is only known at runtime.How can it be done.if someone has some code like this,pls help.I am able to draw and put lines between two squares,i dont know what to do for doing it dynamically
Oct 8 '07 #1
1 1289
r035198x
13,262 MVP
I have a problem to solve.I want to draw squares and lines connecting them.The number of squares is only known at runtime.How can it be done.if someone has some code like this,pls help.I am able to draw and put lines between two squares,i dont know what to do for doing it dynamically
Write a method called drawSquare that takes the appropriate parameters.
Drawing the square dynamically is now simply calling that method with the neccessary parameters
Oct 8 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2299
by: WindAndWaves | last post by:
Hi Folks Is it possible to draw pictures with Javascript? I would like to draw a poly something (i.e. a shape with coordinates). It is for a mouse-over effect to highlight certain areas on a...
1
2923
by: James Beswick | last post by:
I want to do some primitive graphics work - drawing circles, squares, lines and enable the user to manipulate these on an Access form. All the drawing methods are on the report object so are there...
10
4605
by: wazzup | last post by:
C++ is new to me and I'm trying solve this problem but get stuck. Please help me out. Below is the task and after that is what i got so far. Create a program to print nested squares Input:...
1
1410
by: Peted | last post by:
hi im doing some stuff in visula c++ 2008 Im hoping someone can direct me to an algorithm to draw an onscreen grid that has equal squares like a testpattern regardless of the current...
0
7221
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
1
7029
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7481
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5619
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5039
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3190
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.