Solved

Getting cute with dialog controls

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

Technology Partners: 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

Suggested Solutions

Title # Comments Views Activity
SetCurrentDirectory path limit 7 145
Writing a parser for java language 4 93
Socket Programming (Unix) 8 153
Adding items to a C# list incrementally 5 64
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

696 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