Solved

Display in a tab control

Posted on 2000-04-19
5
204 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 25 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

Industry Leaders: 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!

Question has a verified solution.

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

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. …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

623 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