Solved

Making Tabs In A Dialog Application

Posted on 2004-08-31
6
156 Views
Last Modified: 2013-11-20
does anyone know how to make tabs i have no idea how to use them and i have read most of the online documents on the suject.

i will raise the points if u ask cause i dont know how hard it is to make tabs

send an instant message i live in the eastern time zone (i live in michigan USA) i am on most of the time

yahoo - geoffism00
msn - geoffism@hotmail.com
aol - geoffism00
0
Comment
Question by:the_hood00
6 Comments
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 11943806
If you mean the 'tab order' of a dialog resource, it is easy:

Open the dialog resource in resource editor. Choose menu 'Layout - Tab Order ...' and click all controls til the order is correct. After build you could use the 'TAB' key to navigate on your controls.

If you want to insert the 'TAB' character to a string, use '\t' for that:

     string tabbedString = "That\t string\t is\t tabbed";

You may use these strings for printing, writing to text files and and in rich-edit controls.

Regards, Alex
0
 
LVL 11

Expert Comment

by:KurtVon
ID: 11945941
If you mean putting a tab control on the dialog, just use the dialog control toolbar to add the tab controls to your dialog.  Then go into the class wizard and add a member variable that is associated with those tab controls.  Make sure it is a control category variable.

Now you should have a CTabCtrl object to add tab names to, and adding property pages is covered at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_using_ctabctrl.asp

Hope this helps.
0
 
LVL 5

Expert Comment

by:Nass89
ID: 11948922
Hi,
Have a look at:
http://www.codersource.net/mfc_ctabctrl.html.

Good Luck!
0
 

Expert Comment

by:cheapstr
ID: 11969306
The easiest way I found to use a tab is to just use a property sheet:
http://www.functionx.com/visualc/controls/propsheet.htm
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 12251887
PAQed - no points refunded (of 50)

Computer101
E-E Admin
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Different colored text in ComboBox without Subclassing 8 60
Add content to output file 4 63
Detect CR LF to each line 12 158
bigDiff challenge 17 104
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

808 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