Solved

the function like property sheet

Posted on 2000-04-16
6
163 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
  • 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
abstract class with all non abstract mentods 6 75
Change to event 1 99
unix example issues 18 70
Problem to open Excel file 15 91
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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. …
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.
A company’s greatest vulnerability is their email. CEO fraud, ransomware and spear phishing attacks are the no1 threat to a company’s security. Cybercrime is responsible for the largest loss of money to companies today with losses projected to r…

930 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now