Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Display in a tab control

Posted on 2000-04-19
5
Medium Priority
?
207 Views
Last Modified: 2013-11-20
HI,
    How to display something in tab control?. In particular how to display any result of a query of a database in different controls. Each and every time one press a different tab the corresponding page must be displayed.

Thanx,
Thiru
0
Comment
Question by:thirumaran
[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
5 Comments
 
LVL 1

Expert Comment

by:yarond
ID: 2741917
A regular tab control actually don't contain any or your data-windows. You need to create (by code, or from a template) a different child-dialog for each of your tab page. Then when the tab sends a TCN_SELCHANGE message, you can get the selected tab number (using TabCtrl_GetCurSel, or sending a TCM_GETCURSEL message) and display the appropriate dialog.
0
 
LVL 1

Expert Comment

by:Mensana
ID: 2757104
The best exemple that explains to you how to deal with tab controls can be found at:
http://www.visionx.com/mfcpro/mfc-l/t5290.htm
I used it myself when I developed a UI with a tab control. If you have any further problems, just let me know, maybe I can help.
Good luck.
0
 
LVL 1

Expert Comment

by:Mensana
ID: 2757109
One more thing:
I used Terry Wellmann's solution!
0
 

Author Comment

by:thirumaran
ID: 2758011
Hi Mensana/anyone,
   One important point is that one of my dialog box is bigger than the size of the window,so implementation of scrollbar arises and 'am not able to make the scroll bar to move the page downwards.

Help me in this regard,

Thanx,
Thiru
0
 
LVL 1

Accepted Solution

by:
Mensana earned 100 total points
ID: 2759212
I don’t understand what are you trying to do. If you have so many controls on one tab that there is not enough real estate you can actually add a new tab and try to split the controls between two tabs. Eventually you can consider the possibility of having a tab control within a tab control. Basically, on a tab page for a tab control you can throw controls of any kind. I don’t understand what are you trying to scroll! A tab control is used on a dialog box oriented app. There is no way of scrolling such a window. You may want to look into resizing the controls or taking a different approach by using MDI apps. Try to be more specific so I can understand exactly the nature of your problem.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

715 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