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

QuickWin Child Window

marshallc
Beginner
1,104 Views
When working with QuickWin, is it possible to not have a child window display and directly output to the window behind it like a Win32 app? I would like to get rid of the window within a window and have just one window display, but this may just be one of the quirks of codingin QuickWin.
0 Kudos
4 Replies
Steven_L_Intel1
Employee
1,104 Views
I don't quite understand what you mean by "window within a window, unless you're referring to the default Multiple Document Interface (MDI), where there is a frame window and within that, multiple child windows. The alternative in QuickWin is Single Document Interface (SDI), which more emulates a whole-screen DOS application.
0 Kudos
marshallc
Beginner
1,104 Views
I'm not sure if it is SDI, MDI or what not... I'm going to lean towards MDI, but here's an example... you be the judge :)
You know how in the V9Sample there is a Calendar program under QuickWin. When you compile and execute it, there are two minimize, maximize and close buttons to the right of the window created. The only difference between the two is the inner one has the close button greyed out. Also, it looks like the program icon isshowing twice on the left side (next to the program title and next to themenu bar).OK... there is that visual.
When you open a new Win32 project, a default window is created. It has only one set of maximize, minimize and close buttons to the right. Also, it doesn't have the program icon showing twice on the left side. This is the second visual.
Is there a way to make the first visual look like the second visual? I hope this makes sense, and I'm not creating more confusion. When you said SDI and MDI, I'm thinking there is a way to do it, and I think my settings are MDI when they should be SDI... just a guess, but I'm not sure where you change this.
0 Kudos
Steven_L_Intel1
Employee
1,104 Views
You change it when you create the QuickWin project and click on the "Application Settings" link in the project wizard. There you can choose "Standard Graphics" which is SDI. But that's not what you want either, as it has no frame at all.

There isn't a way in QuickWin to get the interface you're looking for.
0 Kudos
John4
Valued Contributor I
1,104 Views
You can simply program your window to be maximized, and in that way you only will have one set of system menu buttons (minimize/restore/close). Under QuickWin it would be something like this:
integer(4)::retint
type (QWINFO) :: ChildInfo
.....
ChildInfo%type = QWIN$MAX
retint = SETWSIZEQQ (ChildUnit, ChildInfo)
0 Kudos
Reply