Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!tut!funic!uwasa.fi!ts From: ts@uwasa.fi (Timo Salmi LASK) Newsgroups: comp.lang.pascal Subject: Re: Text attribute in Graphics mode Keywords: Text Background color Message-ID: <1990Aug25.214403.12139@uwasa.fi> Date: 25 Aug 90 21:44:03 GMT References: <14046@wpi.wpi.edu> <31799@unix.cis.pitt.edu> Organization: University of Vaasa Lines: 35 In article <31799@unix.cis.pitt.edu> cncst3@unix.cis.pitt.edu (Chunqing N. Cheng) writes: >When working with BGI, you cannot use pascal's WRITE or WRITELN unless >you set DIRECTVIDEO=FASLE. I do not like the tiny characters from >OUTTEXT or OUTTEXTXY. But in both cases (either WRITE or OUTTEXT), Graphics programming is not easy, and thus your dilemmas are understandable, but you have things just slightly confused. The outtext characters need not be tiny. You can multiply their size both in height, and in width. It is a case of read the manual. (See SetTextStyle in your reference). >I cannot set up BACKGROUND color freely. If I use OUTTEXT, whenever >I change background color, whole screen change. When I use WRITE, >TEXTBACKGROUND does not function at all. You a right, but one can work around this problem by drawing the background. The easiest way to do that is apply the Bar command appropriately. Note that mixing write-command and graphics mode is not the intended way of going about these things. And if you do not like the way OutText characters are drawn, you can device fonts yourself or read textmode fonts from memory using interrupts. But this can already be considered fairly advanced. >I saw some programs do use different colors for background color in >graphics mode, how can I do this in Turbo Pascal? As per above. The colors in the background are not really background colors, but foreground made to look like background. ................................................................... Prof. Timo Salmi (Moderating at anon. ftp site 128.214.12.3) School of Business Studies, University of Vaasa, SF-65101, Finland Internet: ts@chyde.uwasa.fi Funet: gado::salmi Bitnet: salmi@finfun