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

Dialog

Svein-Atle_Engeseth
746 Views

Hi,
I have made a console application consisting of one dialog. In this dialog I have an Edit-box that I want to put messages in. The problem I have is that I can not get the message displayed on several lines, I just get one long line that I have to scroll through. How do I get several lines in an edit box?
An aside: What is the origin of giving functions and subroutines the name "foo"?
Thanks
SAE

0 Kudos
5 Replies
anthonyrichards
New Contributor III
746 Views

In Resource Editor, right-click on the edit box and select 'Properties', then when the properties dialog appears, select the 'Styles' tab then unselect the 'Auto HScroll' box. Can't help with the 'FOO' I'm afraid.

0 Kudos
Jugoslav_Dujic
Valued Contributor II
746 Views
Use the "Multiline" style (ES_MULTILINE) for the control. To insert linebreaks from the code, separate the lines with CR+LF (char(13)//char(10)).

P.S. For Foo, see http://en.wikipedia.org/wiki/Foo
0 Kudos
jimdempseyatthecove
Honored Contributor III
746 Views
0 Kudos
jimdempseyatthecove
Honored Contributor III
746 Views

SAE,

I think the Wikipedia link is a better reference for the origin ofFOO.

If you like foo, there are several other terms commonly in use. One of my favorites is MUNG. See: http://en.wikipedia.org/wiki/Mung

>>

Mung is computer jargon for "to make repeated changes which individually may be reversible, yet which ultimately result in an unintentional irreversible destruction of large portions of the original item." It was coined in 1958 at the Tech Model Railroad Club, at the Massachusetts Institute of Technology. In 1960, the backronym "Mash Until No Good" was created to describe Mung, and a while after that it was revised to "Mung Until No Good"making it one of the first recursive acronyms, and lived on as a recursive command in the editing language TECO.

Munging implies destruction -- to make large-scale and irrevocable changes to a file and to destroy it. Hence, in the early text-adventure game Zork, also known as Dungeon, the user could mung an object and thereby destroy it (making it impossible to finish the game if the object was an important item). A person who vandalizes a Wiki page would not be munging that page because the changes could be reversed.

<<

By the way, for anyone interested I have a Win32 (both x32 and x64) version of TECO (free).

You can integrateTECO into Visual Studio as an add-on tool and you can add projects for TECO source file macrosinto TECO compiled macros. TECO has a steep learning curve, once learned, it is the fastest way to make large scale changes to projects and solutions. (As well asthe easiest way to MUNG up projects and solutions.)

! repeat, execute macro M, iif M exits with FAIL exit loop, end loop !

Jim Dempsey

0 Kudos
Svein-Atle_Engeseth
746 Views

Hi,
Thanks to all of you.
Now my edit box works the way I want it to work.
SAE

0 Kudos
Reply