Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

tab control dialog

dolmori
Beginner
1,485 Views
Using the CVF IDE, I am trying to create a dialog with a tab control. The programmer's guide says to create dialogs for each tab sheet, but when I do this I get separate resource (.rc) files, and conflicting header (.h) files. The sample "SHOWFONT" program has only a single resource file and header file, which contain all the information about the main dialog and all the tab dialogs. I can't find anyplace that shows how this was done.
0 Kudos
3 Replies
Jugoslav_Dujic
Valued Contributor II
1,485 Views
Uh, I don't follow you 100%. There may be one and only one .rc file in the project -- others, if any, are automatically excluded from build.

What steps did you take? Normally, once you create & insert .rc file into the project, afterwards you just do Insert/Resource... from the IDE and it's supposed to end up in the .rc file of the active project. Am I missing something?

Jugoslav
0 Kudos
dolmori
Beginner
1,485 Views
Thank you for responding. When I use "insert/resource" I find a choice of importing an existing resource or creating a new one. The "new" option creates a whole new file (.rc). However I did finally discover that if I right click on the name of the original script file in the work space "resource view", then I can indeed insert a new dialog into the existing .rc file. But now I have run into a new problem: I use "dlgsetsub" to assign buttons to various tabs of the tab control, but when I run the program none of the buttons appear. No errors nor warnings are displayed during the build, and the I had previously gotten buttons to work ok with single dialogs. The sample program SHOWFONT seems to be more complicated than I need. I just want to have buttons appear on assigned sheets of the tab control in a simple "console" program. Is there another sample program somewhere that might show just this simple kind of function?
0 Kudos
Jugoslav_Dujic
Valued Contributor II
1,485 Views
When I use "insert/resource" I find a choice of importing an existing resource or creating a new one. The "new" option creates a whole new file (.rc).

That's strange -- it doesn't work this way for me.

Please take another look at SHOWFONT example -- focus just on tab control management. Basically, the only thing you can add to the tab control are modeless child dialogs -- dialogs you create in the resource editor without borders and caption and with "Child" and "Control" styles. These dialogs, in turn, can contain controls, such as buttons.

Jugoslav
0 Kudos
Reply