Solved

Replicating object selection frame behavior

Posted on 1998-07-03
4
118 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 100 total points
ID: 1318713
Swell.  Good luck with your project.

B ekiM
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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