View Single Post
 
Old 02-03-2017, 11:26 PM
abeginner abeginner is offline
Newcomer
 
Join Date: Jul 2008
Posts: 10
Default How to get a Perfect Square Shape

First of all ITS GOOD TO BE BACK.

I have a problem trying to draw a perfect square using the Shape control in VB6. I have been playing around with a program to draw various shapes. I need to draw a Perfect Square Shape so that I can then form an Equilateral Triangle using it, but the shape control seems to default to a rectangle instead of a perfect square.

Also what sort of picture box can be used to improve the picture quality (antialias lines)?

Lastly, once each picture is drawn what can be done to move it to a slightly different position (I played around with Robert Raymond's advanced graphics programs on PlanetVB, where a shape can be drawn, moved and rotated but could not understand the code (i think he used some sort of buffer?)). Sorry about all the questions, but I'd really like to learn about this graphics stuff.

Thanks in Advance. Eddie

Here is a screen shot and the code:
Attached Images
File Type: jpg screen.jpg (87.3 KB, 28 views)
Attached Files
File Type: zip A Simple Shape Drawer.zip (86.2 KB, 9 views)

Last edited by abeginner; 02-04-2017 at 12:02 AM. Reason: Add extra questions
Reply With Quote