Solved

Making Tabs In A Dialog Application

Posted on 2004-08-31
6
152 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
Comment Utility
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
Comment Utility
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
Comment Utility
Hi,
Have a look at:
http://www.codersource.net/mfc_ctabctrl.html.

Good Luck!
0
 

Expert Comment

by:cheapstr
Comment Utility
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
Comment Utility
PAQed - no points refunded (of 50)

Computer101
E-E Admin
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 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

12 Experts available now in Live!

Get 1:1 Help Now