06-19-2022, 10:51 PM
(06-19-2022, 02:02 AM)bplus Wrote: Well I know I don't want to build an independent floating Dialog Screen, hmmm how about Window layers: screen 1 on top of screen 2 on top of screen 3... ? hmm... I take a nap.
I used different layers on top of each other in a program with QuickC. Created under Win 95, it ran under MS-DOS and was intended to resemble Windows. It looked something like this:
Code: (Select All)
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include <graph.h>
#define CURSOR_AUS 0x2000
#define CURSOR_NORMAL 0x0707
void effektivZins( double nominal_zins, double kurs, double p_annu, int t_frei );
main()
{
int vg_farbe, i, spalte;
int azeile, aspalte, ezeile, espalte;
int t_zeit; //Tilgungsfreie Zeit
unsigned int hg_farbe;
double kurs, nominal_zins, prozent_annu;
char puffer[64];
hg_farbe = _getbkcolor();
vg_farbe = _gettextcolor();
_gettextwindow( &azeile, &aspalte, &ezeile, &espalte );
_setbkcolor( 15L );
_clearscreen( _GCLEARSCREEN );
_settextcolor( 14 );
_settextposition( 2, 6 );
_outtext( "Effektivverzinsung einer Kapitalschuld bei gegebenem Auszahlungskurs" );
_settextposition( 3, 14 );
_outtext( "tilgungsfreier Zeit und Tilgung durch Prozentannuität" );
_settextcolor( 10 );
for ( i = 1, spalte = 6; i < 69; i++ )
{
_settextposition( 4, spalte++ );
_outtext( "þ" );
}
_settextwindow( 6, 2, 24, 79 );
_setbkcolor( 1L );
_clearscreen( _GWINDOW );
_settextcolor( 15 );
_settextposition( 2, 10 );
_outtext( "Die vereinbarte Jahres-Nominalverzinsung beträgt (%) : " );
scanf("%lf", &nominal_zins);