- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to create a tabbed dialog box, but I am obviously doing something wrong. Although the program runs and creates the tabs, it does not display any of the controls on the tabs. AI has been promoted as being able to create code, so I asked Google's version to create the code for me including the main fortran (.f90) program, the resource (.rc) file, and the resource.h & resource.fd files. The response I received is attached. I compiled/linked these exact files and created the .exe (without any errors) using Composer XE/Visual Studio. This program displays the tabs and you can switch between them, but it also suffers from the same problem. It does not display the controls on the tabbed pages. In the case of this example, the control is a very simple one (i.e., static text using LTEXT). Is there some complile/link option, simple switch, or code that is being left out?
I could not find any tabbed dialog examples of complete code to try, other than that provided by AI.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have never used tabbed controls in quickwin but having read https://www.intel.com/content/www/us/en/docs/fortran-compiler/developer-reference-build-windows-applications/15-0/using-tab-controls.html
i see they claim to be supported
Each tab is a separate dialog definition (a "subdialog") which I see in your .rc file but I am not seeing anything defined on those "sub dialogs" other than the tab title text. so in short what are you expecting to see?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The controls are static text defined in the .rc file, so when you click on each tab, there should be a line of text as defined by LTEXT in the .rc file. When you click on the first tab (General), there should be a line displayed that says "This is the Tab Page 1". When you click on the second tab (Settings), there should be a line displayed that says "This is the Tab Page 2". I used these simple controls just to simplify and show the issue, but if you add other controls such as Check Box or Edit Control and set values for them in the fortran code, they do not show up either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, I think you will need a callback for the dialog and handle the tab selection event such that you do an explicit showwindow call on the controls. In effect the implementation of tab controls has all the tabs sharing the same space so things are implicitly hidden. You can mix sdk and quickwin calls.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have tried registering the callbacks for each tab in the main program using DlgSetSub, and then created a callback subroutine, but I am not exactly sure what the code should look like. I have tried generating the callback subroutine using AI but every example I have tried generates errors when I compile. I need to find a complete working example of tabbed control that includes the .rc resource file and the fortran code for the main program and callback subroutine so I can understand how it all works together, but I have been unable to find such an example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your source code has quite a few things required missing having read an intel help page:
That said I extended your example and tried a few things and did not get it to work. Running in debug It is unclear how the 'child' dialog processes events (which will be WM_NOFIFY messages) and I can see no document or example. One is left with trial and error guessing. What I can say with reasonable confidence is that a working solution would be a hybrid of quickwin with some sdk calls as quickwin is not feature rich and touches a small set of the sdk.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page