TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: MATTHEW DUHART
from: JAN BIJSTERBOSCH
date: 1997-09-08 18:54:00
subject: Problem with initgraph

Hello Matthew,
29 Aug 97, MATTHEW DUHART of 1:307/8 wrote to JAN BIJSTERBOSCH
[ a lot snipped ]
 MD> Sure, I'd love some help on the calculator thing...that is
 MD> if it's not too much trouble.
Well, I had to dig in the old disk box, but I found it. Beware you have to 
rename the colours to your liking since I had only a Hercules graphics card 
when I did this typework . The whole program is a little much for posting 
here, but if you take the stuff between the double lines and paste it in your 
calc_app.cpp instead of your border declarations, at least your buttons will 
be fine. ;-))
========================================================================
        Border border1(SCREEN, 240, 30, 480, 330);
        Output output1(&border1, 20, 20, 220, 60, BLACK, WHITE);
                                                        //buttons
        Button button0(&border1, 30, 230, 65, 265, BLACK, "0");
        Button button1(&border1, 30, 180, 65, 215, BLACK, "1");
        Button button2(&border1, 78, 180,113, 215, BLACK, "2");
        Button button3(&border1,127, 180,162, 215, BLACK, "3");
        Button button4(&border1, 30, 130, 65, 165, BLACK, "4");
        Button button5(&border1, 78, 130,113, 165, BLACK, "5");
        Button button6(&border1,127, 130,162, 165, BLACK, "6");
        Button button7(&border1, 30,  80, 65, 115, BLACK, "7");
        Button button8(&border1, 78,  80,113, 115, BLACK, "8");
        Button button9(&border1,127,  80,162, 115, BLACK, "9");
        Button buttonDiv(&border1,175,  80,210, 115, BLACK, "/");
        Button buttonMul(&border1,175, 130,210, 165, BLACK, "*");
        Button buttonSub(&border1,175, 180,210, 215, BLACK, "-");
        Button buttonDot(&border1, 78, 230,113, 265, BLACK, ".");
        Button buttonClr(&border1,127, 230,162, 265, BLACK, "clr");
        Button buttonAdd(&border1,175, 230,210, 265, BLACK, "+=");
========================================================================
Hope this helped somewhat...
Greetings from sunny Amsterdam,
       Jan
email:bijster@worldonline.nl
http://www.worldonline.nl/~bijster
--- MBM v3.41e
---------------
* Origin: Snuffelaar bij DosBoss West (2:500/121.5122)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.