Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Replicating object selection frame behavior

Posted on 1998-07-03
4
Medium Priority
?
121 Views
Last Modified: 2013-11-19
I'm looking at adding some functionality to a tool that lays out graphical objects on a view.  I would like to mimic the selection behavior of other commercial applications that highlight selected objects with the hatched frames with points (like PowerPoint, Visio, etc.).  In doing the analysis, I was wondering if anyone else has gone down this path had has some MFC design pattern advise or at least help me avoid any unnecessary pitfalls.  There might even be a good class in a library that does this, but I haven't found it yet.  Suggestions?

Any help is greatly appreciated.... Thanks!

Chris
0
Comment
Question by:ctynes
  • 2
4 Comments
 
LVL 2

Expert Comment

by:lucidity
ID: 1318710
Your best bet would be to go with OLE objects, easy and widely supported. I will make things like creation, selection and layering fairly easy (once you've made the object classes and sub classes anyway)
0
 
LVL 11

Expert Comment

by:mikeblas
ID: 1318711
Huh?  You should use OLE for OLE, not for selection!  And it's often inadequate for more complicated apps--OLE objects always have a rectangular area within their client, and objects you draw aren't always rectangles.

Implementing hatching and rubber-band selections isn't very hard. Look at the paint program from my book for examples on how to do rubber-banding and grab handles.

B ekiM
0
 

Author Comment

by:ctynes
ID: 1318712
Thanks for the reference Mike.  It looks like your book is going to be the ticket for retro-fitting this behavior into this application I'm taking over.  From some reviews I just read, it looks like you have several other ideas I can play off of as well to beef it up.

Chris
0
 
LVL 11

Accepted Solution

by:
mikeblas earned 400 total points
ID: 1318713
Swell.  Good luck with your project.

B ekiM
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question