473,396 Members | 1,923 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,396 software developers and data experts.

Create simple shape editor

4
Hello and sorry for my bad english :). I need to create simple editor (geometry basic shapes like lines, rectangles, ellipse). I have a little problem. I know how to create simple shape but dont know how to select it and then edit. Can someone help me?.
Jan 6 '08 #1
8 2610
Hello and sorry for my bad english :). I need to create simple editor (geometry basic shapes like lines, rectangles, ellipse). I have a little problem. I know how to create simple shape but dont know how to select it and then edit. Can someone help me?.

selecting them and editing them will require mouse programming where you will have to campare the co-ordiantes of your figure and that of mouse and program accordingly. ..
Jan 6 '08 #2
robak
4
And that why it wont be easy to do that ... right ??
Jan 7 '08 #3
Savage
1,764 Expert 1GB
And that why it wont be easy to do that ... right ??
Selecting the figures is the easier part.Every figure should have bounding rect(or box in 3d),which helps you select it.Instead checking whether you have clicked inside the figure,you check whether you have clicked inside it's bounding object.If you ever used Photoshop,Corel or other similiar software you know what am I talking about.Now, on those bounding objects are controls,like rotation,translation,pivot control,scale control...

Savage
Jan 7 '08 #4
robak
4
Selecting the figures is the easier part.Every figure should have bounding rect(or box in 3d),which helps you select it.Instead checking whether you have clicked inside the figure,you check whether you have clicked inside it's bounding object.If you ever used Photoshop,Corel or other similiar software you know what am I talking about.Now, on those bounding objects are controls,like rotation,translation,pivot control,scale control...
I still dont know how to select :/ and i hope i undestand it when i search the web about bounding box that u mention.
Jan 7 '08 #5
if you have a drawn a figure
you know its coordinates
you know the present coordinates of the mouse
by comparing these coordinates ..u get to know whenever the user has selected the figure and then you accordingly draw some figures and lines or clear some figures and lines to present it in such a way that the user has selected the picture and edited it
Jan 7 '08 #6
weaknessforcats
9,208 Expert Mod 8TB
Are you using WIndows??

If so, there is a Visio COM object that does this that's all set to go.
Jan 7 '08 #7
robak
4
yes im using Windows
Jan 8 '08 #8
weaknessforcats
9,208 Expert Mod 8TB
Then you might research Visio COM add-in objects sold by Micosoft. Your shape editor may already be written.
Jan 8 '08 #9

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

Similar topics

2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
6
by: Jacek Dziedzic | last post by:
Hello! First of all please forgive me for not posting a compilable snippet, but rather a simplified piece of code with the unimportant details left out. Let's say I have two classes...
14
by: LumisROB | last post by:
Is it possible to create matrixes with vector <vector <double >> ? If it is possible which is the element m23 ? You excuse but I am not an expert Thanks ROB
4
by: I_AM_DON_AND_YOU? | last post by:
There is one more problem I am facing but didn't get the solution. In my Setup Program I am not been able to create 2 things (when the program is intalled on the client machine ) : (1) create...
4
by: HalloUlrich | last post by:
How can I create a window not as an rectangle. e.g. as a circle or polygon. Can I use the function CreateWindow from windows-API?
3
by: shuisheng | last post by:
Dear All, Assume I have a base class of Shape, and derived classes of Sphere, Cube, Cylinder. When user input 1, it creates a new default sphere; 2, a new default cube; and 3 a new default...
5
by: moondaddy | last post by:
I want to create a custom UI element which will be a custom rectangle object in a c# XAML application. I'm new to XAML and c# as most of my experience has been using vb with sql. I'm building a...
1
by: barry | last post by:
Is there any way that I can have a piece of code create properties and give them names for either the same class or a different class. For example (this problem could be solved with inheritance...
3
by: danesh1354 | last post by:
Hi All, First I need to construct a text editor by python programming and add this code to a biger code that has been written before, and i would like that by my code for this editor have a...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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
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...

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.