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

extend console buffer

kooka
Beginner
1,113 Views

hi buddies, i was output some text to the child windowfrom a .txt file, the problem is that the file is larger than the screen and i only can see the last lines of the file on the screen, i can't return because the arrows don't let me, Is there a way to return and see the first lines?

Thanks!

0 Kudos
8 Replies
kooka
Beginner
1,113 Views
NOTE: I'm in Quickwin mode
0 Kudos
Steven_L_Intel1
Employee
1,113 Views
Good thing you added that.

The size of the QuickWin window can be changed by writing an INITIALSETTINGS routine. However, don't make it too large or you may run out of memory, since a QuickWin window is simply a big bitmap. See the on-disk documentation for more on using QuickWin.
0 Kudos
kooka
Beginner
1,113 Views

tanks steve, i already read the quickwin and console documentation, I send my textadding a new console and extended the buffer, the text is ok loaded, but i would to send images too, as you say, in quikwin is a big waste of memory, but in a console i only can send text, i was tinking send both(text and graphics), to a mdichild window using win32 routines, is there a way?, is not an enormus waste of memory too?

Tanks!

0 Kudos
Steven_L_Intel1
Employee
1,113 Views
I would not say it is a "waste" of memory. But combining text and graphics in a scrollable window does require a bitmap and those take a lot of memory. If you did it with Win32 calls, you'd have exactly the same problem. Can the images go into a separate window? You could have a console application that opened windows for graphics.
0 Kudos
kooka
Beginner
1,113 Views

Tanks Steve:

Actually i am wondering to use a rich text box implanted in a win 32 child window, but i'm not sure it supports graphics, i read the some sdk doc about the topic and reallize it supports Embedded objects, im not sure whats that. the cuestionsare:

Does rich edit boxes suppor images?

can I store that data in .rtf file format?

how can i print that if my rich text box is bigger than the screen?

Tanks again!

0 Kudos
Steven_L_Intel1
Employee
1,113 Views
I'm going to have to leave that to others who have done extensive Win32 UI programming, which I have not. I'm sure they'll chime in here.
0 Kudos
g_f_thomas
Beginner
1,113 Views

I don't do QW but I'm not adverse to them.

RTB's can host picture and image controls, so yes. The latter 'wastes' less memory but has some limitations which may not matter in your case.

Yes, you can write data (I guess you mean ASCII or Unicode) to a RTB. You don't have to concern yourself with the inners of RTB format unless you really want to.

Unless you can get a bigger printer than your screen, just print the RTB's contents to the default printer with its default 8 1/2 x11 or A4 or whatever.

Gerry

0 Kudos
kooka
Beginner
1,113 Views
tanks gerry, i'm going to read the rtb doc, to take a deep knowledge.
0 Kudos
Reply