473,386 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Need help with graphics - redrawing pie-sections

I have a circle that displays information in 1-degree increments -
there are 90 such increments that comprise the circle. I need a
pointer within the circle that rotates. The pointer must include areas
to the left and right of the center line so that a person is better
able to see when something is within 2 or 3 or 4 or 5 marks (degrees)
of its neighbors. I can use a line and get it to rotate - that is no
problem. The problem is drawing an arc and redrawing that arc every
time I rotate the pointer. The circle command allows me to draw an arc
as a pie-section. That is wonderful. But when I rotate the pointer,
how do I get the previous arc to go away, then draw the new arc
without having to redraw the entire form, which is too time-consuming?
I have tried a shape control, but that does not allow pie-sections to
be drawn. I have experimented with a picture box, an image box, and a
frame, but none of these are transparent and allow me to see something
underneath them (if I put my line control(s) within these containers).

In effect, all I want to do is keep drawing and redrawing new
pie-sections on top of my form when I rotate my pointer around the
wheel - without having to redraw everything from scratch each time I
move the pointer/arc.

Thanks for your help.

I have tried the below and it does not do what I want regarding
erasing the previous info before drawing the new info (in effect, is
there a cls command for the circle?):

Me.DrawMode = 12
Me.DrawStyle = 5
Me.FillColor = QBColor(14) 'gives a soft blue color on a gray
background form
Me.FillStyle = 0

Me.Circle (0, 0), outer_radius%, QBColor(14), -start_angle * PI /
180, -end_angle * PI / 180

---
Allen
Jul 17 '05 #1
0 3413

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Jeroen Ceuppens | last post by:
Hi, When I draw a bitmap on a form, the bitmapdrawing disappears when I move the form, how is it possible to lock the drawing so it stays visible when you move or do somethings else.... Thx...
2
by: Andy | last post by:
Is it possible to use graphics class in web forms? For example DrawArc Method. TAI
5
by: Crirus | last post by:
I need to write a routine that iterate through all points inside a circle with a known radius points are known as pairs (x,y) -- Ceers, Crirus ------------------------------
2
by: ECVerify.com | last post by:
I have a Graphics object in a control that has an image I want to print...I want to print my already made Graphics object that I use in a control, I try this Private Sub pd_PrintPage(sender As...
2
by: Lorenzo Thurman | last post by:
I'm interested in producing presentation style graphics using PHP. Things like pie charts, bar graphs, etc. I have a couple of PHP books, but they only address basic drawing primitives. Does...
17
by: Galen Somerville | last post by:
The following code just shows a small portion of the overall Graphics on my Sweep form. I set the Panel to a medium Grey color so it stands out on a Windows Grey screen. The first thing that...
4
by: Sugan | last post by:
Hi all, I've created a Custom button control and i'm drawing the graphics for the button when the paint event is fired. I used Invalidate method to redraw the graphics in events like mousemove,...
4
by: vunet.us | last post by:
I would like to create web charts. My site is using AJAX, so I thought of VML and SVG for chart graphics. But there is a browser compatibility issue. Flash would be a good solution but I do not...
0
by: benfly08 | last post by:
Hi, guys. I have a program to draw bar/pie chart based on the data i hard coded in it. However, my image comes with "BLACK" background color. I don't know how to fix this. The code snippet is...
2
by: ThatsIT.net.au | last post by:
I have this code that writes a pie chart in a asp.net page, but I want to use it in a server control. When I try I get a error on the last line "Response.OutputStream" Obviously there is no...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.