Solved

the function like property sheet

Posted on 2000-04-16
6
166 Views
Last Modified: 2013-11-20
I hope if i click different buttons,the content of my dialog box will changes.(like the property sheet,but don't have the tabs). how to implement this?
0
Comment
Question by:seuwind
[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
  • 3
  • 2
6 Comments
 
LVL 3

Expert Comment

by:_mb_
ID: 2720319
I think, nevertheless the easiest way is to use a tab-control on your dialog. You can modify it's style (within the resource editor), so that no tabs are displayed, but you can use it like  a "standard" tab-control.
0
 
LVL 10

Accepted Solution

by:
RONSLOW earned 50 total points
ID: 2721261
tab control is very much like a set of radio buttons .. when you click on a tab, you get a message sayig 'tab number x has been blicked on'.  That is all tabs do.

What happens when you click on a tab is usually one of tow things

1) you change the visibility of certina controls (or maybe change some labels etc).  You couldeven dynamically create/destroy controls

2) you use child dialogs and make the appropriate one active/visible.

If you are going for options 2, then an embedded (child) property sheet is the easiest, as it has the logic for hooking up tabs to child dialogs built in.

If you don't want tabs for some other reason, then you can do either of the above yourself.
0
 

Author Comment

by:seuwind
ID: 2724999
Thanks for your help, RONSLOW

what I need is like "view switching" .
perhaps the option 2 that you gave me can help.
Because i am a beginner in programing,I hope if you can give me some example or some tips.

thanks
0
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!

 
LVL 10

Expert Comment

by:RONSLOW
ID: 2725126
I can point yuou at lots of smaple code that does view switching using tabs etc if that is what you want
0
 

Author Comment

by:seuwind
ID: 2739224
yes, that's I want.
please point me at some sample code. Thank you very much for your help
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2743211
I've been away from the PC over Easter break .. will send you some exact links .. but you can probably find examples at http://www.codeguru.com/doc_view/index.shtml .. there is a section on tabbed views there .. a number of techiniques are presented.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 55
ffmpeg - "rtsp://...... Operation not permitted" 4 89
Path of Workbook 3 87
Problem to open Excel file 15 227
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

730 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