Solved

Getting cute with dialog controls

Posted on 1998-08-29
4
176 Views
Last Modified: 2010-04-10
null
0
Comment
Question by:rascal
[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 22

Expert Comment

by:nietod
ID: 1171552
A better idea might be to have the items in the right location, but hide the windows you don't want them to see.
0
 
LVL 1

Author Comment

by:rascal
ID: 1171553
That would be preferable to me too, but there are 6 groupboxes and within each of them a number of controls and that makes for a very crowded and confusing looking dialog template when using the resource editor. I may have to resort to that after all but I was hoping for an alternative if there is one.

Thanks
0
 
LVL 7

Accepted Solution

by:
psdavis earned 200 total points
ID: 1171554
Rascal,

1) Make sure the user ID numbers are synchronous within a range (edit the resource.h file).  Then when you move a group box by a certain cx and cy, move the next '20' controls the exact same distance.  It shouldn't add but a few lines to the code.

1) How about a creating a tab control into your dialog?  This will allow the user to select what group box they want to see.  As the user clicks on a particular tab, then you can hide/show the appropriate controls.

I am thinking (not confirmed, look into it) that you might be able to create separate dialogs, one for each of your groupboxes.  Then add them as CPropertyPages to the tab control.  I'm just not sure.

3) I've heard grumblings about 'transparent dialogs'.  These are supposedly dialogs that you can put on top of each other.  I don't know anything more about that.

Good luck!

Phillip

0
 
LVL 1

Author Comment

by:rascal
ID: 1171555
Thanks, I was looking for at least some mechanism I could move the associated controls and still keep the code looking reasonably professional looking.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

  Included as part of the C++ Standard Template Library (STL) is a collection of generic containers. Each of these containers serves a different purpose and has different pros and cons. It is often difficult to decide which container to use and …
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

717 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