This is a source code for small help dialog in DOS mode graphics. It can b used in any application for help purpose or showing messages to the user. It uses the ASCII characters to build the windows shape and then I have used the gotoxy() function to place the cursor at that location to print the desired text, and I have also used the fprintf() function to print the colored text.

Initially it calls clrscr() function to clear the contents on the screen and then calls windows() function to draw the custom windows.

//Help file for getting help on shortcut keys

#include <stdio.h>
#include <conio.h>
#include <iostream.h>

void main(void){
textcolor(10);
clrscr();
window(3,4,66,20);{
gotoxy(3,4);
cout<<"=============================================="<<endl;
gotoxy(3,5);
cout<<"| |"<<endl;
gotoxy(3,6);
cout<<"| |"<<endl;
gotoxy(3,7);
cout<<"| |"<<endl;
gotoxy(3,8);
cout<<"| |"<<endl;
gotoxy(3,9);
cout<<"| |"<<endl;
gotoxy(3,10);
cout<<"| |"<<endl;
gotoxy(3,11);
cout<<"| |"<<endl;
gotoxy(3,12);
cout<<"| |"<<endl;
gotoxy(3,13);
cout<<"| |"<<endl;
gotoxy(3,14);
cout<<"| |"<<endl;
gotoxy(3,15);
cout<<"| |"<<endl;
gotoxy(3,16);
cout<<"| |"<<endl;
gotoxy(3,17);
cout<<"=============================================="<<endl;
}
textcolor(WHITE);
gotoxy(9,6);
cprintf("1: File Menu ALT+F");
gotoxy(9,7);
cprintf("2: Edit Menu ALT+E");
gotoxy(9,8);
cprintf("3: Search Menu ALT+S");
gotoxy(9,9);
cprintf("4: Run Menu ALT+R");
gotoxy(9,10);
cprintf("5: Compile Menu ALT+E");
gotoxy(9,12);
cprintf("6: About Us F3");
gotoxy(9,13);
cprintf("7: Up Up Arrow");
gotoxy(9,14);
cprintf("8: Down Down Arrow");
gotoxy(35,6);
cprintf("9: Left Left Arrow");
gotoxy(35,7);
cprintf("10:Right Right Arrow");
gotoxy(35,8);
cprintf("11:New Line INS");
gotoxy(35,9);
cprintf("12:Delete Line DEL");
gotoxy(35,10);
cprintf("13:High Video ALT+H");
gotoxy(35,11);
cprintf("14:Low Video ALT+L");
gotoxy(35,12);
cprintf("15:COLOR ALT+T+");
gotoxy(35,13);
cprintf("Desired Color Number(1-15)");
gotoxy(35,14);
cprintf("16:UnDo ALT+U");

{
gotoxy(9,11);
textcolor(LIGHTGREEN);
cprintf(" TEXT EDITOR");
textcolor(LIGHTGREEN);
gotoxy(27,5);
cprintf("Shortcut Keys!");
}
gotoxy(22,16);
textcolor(BLINK+RED);
cprintf("Press any key to continue");
gotoxy(20,15);
textcolor(LIGHTGREEN);
cprintf("Thanks for using our project!");
_setcursortype(_NOCURSOR);
getch();
}