15,897,704 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by sooraj subramanya (Top 17 by date)
sooraj subramanya
7-Mar-12 2:02am
View
Its k...
sooraj subramanya
7-Mar-12 1:55am
View
Please go through the question again....
wxWizards is a library for creating wizards... like wxDialog for Dialog's
sooraj subramanya
7-Mar-12 0:25am
View
am using wxWizards... does it work there??
I got this link :http://wiki.wxwidgets.org/WxWizard...
but if i try that next button from all the wizards are getting disabled...
sooraj subramanya
14-Dec-11 1:33am
View
I tried to add MACOS tag, but its not adding after I press update question button...
sooraj subramanya
13-Dec-11 1:38am
View
No SAKryukov !!for ex: in windows there is some difference in port names. We can filter out the unwanted ports.
sooraj subramanya
12-Dec-11 9:11am
View
@Laxmikant_Yadav AND @johny10151981: Thanks for the above help. I have successfully implemented it in windows. Do u have any idea like how to implement the same in MAC OS X ???
sooraj subramanya
2-Dec-11 3:01am
View
Its helping a lot... Thanks..:)
sooraj subramanya
2-Dec-11 2:51am
View
@Laxmikant_Yadav: great idea...Thanks...PORT_INFO_(1,2,3) also helps.
Thanks again...
sooraj subramanya
18-May-11 4:16am
View
Thanks for the help.
I have proposed the solution i hav implemented in which I store all the handles coordinates, if i rotate the shape, then i sort the points and assign lowest x as Top-Left then i display the cursor based on the angle of the shape
sooraj subramanya
18-May-11 4:11am
View
Have added <pre> tag. and this is the solution i have implemented.
sooraj subramanya
18-May-11 4:11am
View
I agree with you oliver. Thanks for the help.
I have proposed the solution i hav implemented in which I store all the handles coordinates, if i rotate the shape, then i sort the points and assign lowest x as Top-Left then i display the cursor based on the angle of the shape.
sooraj subramanya
18-May-11 0:29am
View
ya. you are absolutely right. It wont be top-left anymore. After rotating( including handles) you will get 8 new points(for ex: consider you rotate a rectangle clockwise by 30 degree),then which point will you consider as top-left and why??
sooraj subramanya
17-May-11 7:19am
View
Please consider coordinate system Top-Left (x,y)=(0,0).
And also consider the bounding rectangle can be rotated, which affects values of Handles.
sooraj subramanya
17-May-11 6:03am
View
Thanks for the solution . I have implemented the same. But the the solution you have provided fails when i decrease the size of the ellipse.
When i decrease the size of an ellipse the handles wont be available at 22.5 degree...
By which wrong cursors are displayed. Ex:
TopRightShape = LeftRightArrowShape.... etc
sooraj subramanya
17-May-11 5:06am
View
the order in which i passed the handles to sort is vector<crect> vectHandleRects;
// vectHandleRects.push_back(CRect(m_TopLeftRect.TopLeft(), m_TopLeftRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_MidLeftRect.TopLeft(), m_MidLeftRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_BottomLeftRect.TopLeft(), m_BottomLeftRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_MidTopRect.TopLeft(), m_MidTopRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_MidBottomRect.TopLeft(), m_MidBottomRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_TopRightRect.TopLeft(), m_TopRightRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_MidRightRect.TopLeft(), m_MidRightRect.BottomRight()));
// vectHandleRects.push_back(CRect(m_BottomRightRect.TopLeft(), m_BottomRightRect.BottomRight()));
sooraj subramanya
17-May-11 5:03am
View
The problem is with rearranging the coordinates after i rotate,
If i roatate the ellipse slightly towards right (try in MS-WoRD). Which point do i consider as Top-Left?
struct SortingFunction
{
bool operator()(const CRect& a, const CRect& b)
{
if (a.left == b.left)
return a.top <= b.top;
else
return a.left < b.left;
}
I tried to rearrange with the above code. But it dint work for many cases.
Getting the top-left point after I rotate the ellipse is the main big problem i am facing right now.
sooraj subramanya
17-May-11 4:28am
View
Thanks for your replying. I have updated the question.
Please check it.
Show More